summaryrefslogtreecommitdiff
path: root/calculator.c
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2023-12-01 06:46:04 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2023-12-01 06:46:04 +0000
commitaacff5dfbe836f6f373499df925c5396c2371321 (patch)
tree988853e48d09b1e2bc6ce4c4498f66662f2d75ab /calculator.c
parent807b0c6741857cd85b8ffb5a10781e1e5ef5012b (diff)
Thu, Nov 30, 2023, 10:46 PM -08:00
Diffstat (limited to 'calculator.c')
-rw-r--r--calculator.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/calculator.c b/calculator.c
index 84559d5..6ae31f0 100644
--- a/calculator.c
+++ b/calculator.c
@@ -3,8 +3,8 @@
int main(void)
{
- int x = get_int("x: ");
- int y = get_int("y: ");
+ long x = get_int("x: ");
+ long y = get_int("y: ");
- printf("%i\n", x+y);
+ printf("%li\n", x + y);
}