From de3ce6772a1dd1badc0a2c164e5cdb3bd4a84a60 Mon Sep 17 00:00:00 2001 From: Ashhcodes15 Date: Fri, 28 Mar 2025 12:15:06 +0530 Subject: [PATCH] Updated version of num.c modified variables and logic of calculation --- num.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/num.c b/num.c index 1222ec7..cc28b1a 100644 --- a/num.c +++ b/num.c @@ -1,17 +1,17 @@ #include int main() { - int num1, num2, sum; + int num01, num02, sum; printf("Enter the first number: "); - scanf("%d", &num1); + scanf("%d", &num01); printf("Enter the second number: "); - scanf("%d", &num2); + scanf("%d", &num02); - sum = num1 + num3; + sum = num01 + num03; - printf("The sum of %d and %d is %d.", num1, num2, sum); + printf("The sum of %d and %d is %d.", num01, num02, sum); return 0; }