summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2023-12-01 05:23:07 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2023-12-01 05:23:07 +0000
commit52468041b5aadca8b2bdd27b4292417d82ba5848 (patch)
tree17e228b21fee4b4b279493a944b20a88c6e6fb1f
parent00b7620092053204de608e9a71367a4a21481408 (diff)
Thu, Nov 30, 2023, 9:23 PM -08:00
-rw-r--r--if.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/if.c b/if.c
new file mode 100644
index 0000000..ce09569
--- /dev/null
+++ b/if.c
@@ -0,0 +1,14 @@
+#include <stdio.h>
+#include <cs50.h>
+
+int main(void)
+{
+int x, y;
+if (x < y) {
+ printf("x is less than y\n");
+} else if (x > y) {
+ printf("x is greater than y\n");
+} else if (x == y) {
+ printf("x is equal to y\n");
+}
+}