summaryrefslogtreecommitdiff
path: root/calculator.c
diff options
context:
space:
mode:
Diffstat (limited to 'calculator.c')
-rw-r--r--calculator.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/calculator.c b/calculator.c
new file mode 100644
index 0000000..84559d5
--- /dev/null
+++ b/calculator.c
@@ -0,0 +1,10 @@
+#include <stdio.h>
+#include <cs50.h>
+
+int main(void)
+{
+ int x = get_int("x: ");
+ int y = get_int("y: ");
+
+ printf("%i\n", x+y);
+}