summaryrefslogtreecommitdiff
path: root/compare.c
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2023-12-01 05:32:29 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2023-12-01 05:32:29 +0000
commit6c239dc828d73b974b51109db65765beaca4a354 (patch)
tree3b427d15ffd059de64a0c6e4b6bebfc5e655d87d /compare.c
parentc2797e2c1f1ab70557a09cf30306a46a7ac9c077 (diff)
Thu, Nov 30, 2023, 9:32 PM -08:00
Diffstat (limited to 'compare.c')
-rw-r--r--compare.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/compare.c b/compare.c
index 1a2dc85..6c436bf 100644
--- a/compare.c
+++ b/compare.c
@@ -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");
}
}