summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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");
+}
+}