summaryrefslogtreecommitdiff
path: root/compare.c
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2023-12-01 05:25:03 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2023-12-01 05:25:03 +0000
commit3701ed1038a3259388baf25232f4b9ba65ef9158 (patch)
treecf564b2b713e2bc239d39c048ea71bb2f4722083 /compare.c
parentb27e1c2de44ad1ace3ea619051d106c8d7bd8a33 (diff)
Thu, Nov 30, 2023, 9:25 PM -08:00
Diffstat (limited to 'compare.c')
-rw-r--r--compare.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/compare.c b/compare.c
new file mode 100644
index 0000000..6dfbdc8
--- /dev/null
+++ b/compare.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 {
+ printf("x is equal to y\n");
+}
+}