From 9e09c03ab680efd47069e9be2066af2c454dd874 Mon Sep 17 00:00:00 2001 From: "sona.kv" Date: Thu, 2 Jan 2025 05:50:39 +0530 Subject: [PATCH 1/2] updated --- add.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/add.c b/add.c index a821c22..92da8d8 100644 --- a/add.c +++ b/add.c @@ -9,7 +9,7 @@ int main() { printf("Enter the second number: "); scanf("%d", &num2); - sum = num1 + num2; + sum = num1 + num3; printf("The sum of %d and %d is %d.", num1, num2, sum); From 71a21a716c871a291e0229f76f1eef94a3513b80 Mon Sep 17 00:00:00 2001 From: sonashaiju Date: Thu, 2 Jan 2025 12:28:26 +0530 Subject: [PATCH 2/2] old one --- add.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/add.c b/add.c index 92da8d8..a821c22 100644 --- a/add.c +++ b/add.c @@ -9,7 +9,7 @@ int main() { printf("Enter the second number: "); scanf("%d", &num2); - sum = num1 + num3; + sum = num1 + num2; printf("The sum of %d and %d is %d.", num1, num2, sum);