summaryrefslogtreecommitdiff
path: root/wk4/lect/compare.c
diff options
context:
space:
mode:
Diffstat (limited to 'wk4/lect/compare.c')
-rw-r--r--wk4/lect/compare.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/wk4/lect/compare.c b/wk4/lect/compare.c
new file mode 100644
index 0000000..f13cfda
--- /dev/null
+++ b/wk4/lect/compare.c
@@ -0,0 +1,20 @@
+#include <cs50.h>
+#include <ctype.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+int main(void)
+{
+ int i = get_int("i: ");
+ int j = get_int("j: ");
+
+ if (i==j)
+ {
+ printf("Same\n");
+ }
+ else
+ {
+ printf("Different\n");
+ }
+}