summaryrefslogtreecommitdiff
path: root/wk4/lect/compare.c
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-02-27 20:18:13 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-02-27 20:18:13 +0000
commit2f9bce33fa5f28f721f6b1606ef32a1b7941daad (patch)
tree24043c6e44a6378d684634e77a7ef07988e658e6 /wk4/lect/compare.c
parente113afe2c85c0abd6d679e4c1b0cefec5e2530ed (diff)
Tue, Feb 27, 2024, 12:18 PM -08:00
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");
+ }
+}