From d85d7ddee2562856b7e212b79e15104ad76117a6 Mon Sep 17 00:00:00 2001 From: MSJISHNU Date: Thu, 2 Jan 2025 12:04:58 +0530 Subject: [PATCH 1/4] first commit --- num.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/num.c b/num.c index 1222ec7..9a605af 100644 --- a/num.c +++ b/num.c @@ -9,7 +9,7 @@ int main() { printf("Enter the second number: "); scanf("%d", &num2); - sum = num1 + num3; + sum = num1 + num3 + 3; printf("The sum of %d and %d is %d.", num1, num2, sum); From eb82282a588fb406529eb17268c1183888d5e29a Mon Sep 17 00:00:00 2001 From: MSJISHNU Date: Thu, 2 Jan 2025 12:31:01 +0530 Subject: [PATCH 2/4] recent --- num.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/num.c b/num.c index 9a605af..1222ec7 100644 --- a/num.c +++ b/num.c @@ -9,7 +9,7 @@ int main() { printf("Enter the second number: "); scanf("%d", &num2); - sum = num1 + num3 + 3; + sum = num1 + num3; printf("The sum of %d and %d is %d.", num1, num2, sum); From e062224642374adb0dffcba791bfd19b206f149d Mon Sep 17 00:00:00 2001 From: MSJISHNU Date: Thu, 2 Jan 2025 12:31:28 +0530 Subject: [PATCH 3/4] Updated recent --- num.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/num.c b/num.c index 1222ec7..d30993c 100644 --- a/num.c +++ b/num.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); From 4e075a31f67beb943c419082740ca81e72c01771 Mon Sep 17 00:00:00 2001 From: MSJISHNU Date: Tue, 22 Apr 2025 20:21:58 +0530 Subject: [PATCH 4/4] updated --- num.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/num.c b/num.c index d30993c..240dfe2 100644 --- a/num.c +++ b/num.c @@ -1,7 +1,9 @@ #include +#include // added new headerfile -int main() { +void main() { int num1, num2, sum; +clrscr(); // for clearing the output screen printf("Enter the first number: "); scanf("%d", &num1); @@ -13,5 +15,5 @@ int main() { printf("The sum of %d and %d is %d.", num1, num2, sum); - return 0; + getch(); }