diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2023-12-01 05:29:40 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2023-12-01 05:29:40 +0000 |
commit | c2797e2c1f1ab70557a09cf30306a46a7ac9c077 (patch) | |
tree | 4dfc3c7c629e5311f157fc633dec0fa47d392987 /compare.c | |
parent | 1c88a4af2bdf25f45cbf87489f8f03d39a54555e (diff) |
Thu, Nov 30, 2023, 9:29 PM -08:00
Diffstat (limited to 'compare.c')
-rw-r--r-- | compare.c | 19 |
1 files changed, 10 insertions, 9 deletions
@@ -3,13 +3,14 @@ int main(void) { - int x = get_int("What's x? "); - int y = get_int("What's y? "); - if (x < y) { - printf("x is less than y\n"); - } else if (x > y) { - printf("x is greater than y\n"); - } else { - printf("x is equal to y\n"); - } +int x = get_int("What's x? "); +int y = get_int("What's y? "); + +if (x < y) { + printf("x is less than y\n"); +} else if (x > y) { + printf("x is greater than y\n"); +} else { + printf("x is equal to y\n"); +} } |