diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2023-12-01 05:32:29 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2023-12-01 05:32:29 +0000 |
commit | 6c239dc828d73b974b51109db65765beaca4a354 (patch) | |
tree | 3b427d15ffd059de64a0c6e4b6bebfc5e655d87d /compare.c | |
parent | c2797e2c1f1ab70557a09cf30306a46a7ac9c077 (diff) |
Thu, Nov 30, 2023, 9:32 PM -08:00
Diffstat (limited to 'compare.c')
-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"); } } |