diff options
-rw-r--r-- | calculator.c | 6 |
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); } |