diff options
-rw-r--r-- | compare.c | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -6,11 +6,16 @@ int main(void) int x = get_int("What's x? "); int y = get_int("What's y? "); -if (x < y) { +if (x < y) +{ printf("x is less than y\n"); -} else if (x > y) { +} +else if (x > y) +{ printf("x is greater than y\n"); -} else { +} +else +{ printf("x is equal to y\n"); } } |