From 3ae184c1c5e9bb4bf638c1acbd1ed824dcb15825 Mon Sep 17 00:00:00 2001 From: Tanmay4409 Date: Tue, 12 Mar 2024 14:31:07 +0530 Subject: [PATCH 1/3] first commit --- sample.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 sample.c diff --git a/sample.c b/sample.c new file mode 100644 index 0000000..c8b7f7b --- /dev/null +++ b/sample.c @@ -0,0 +1,14 @@ +#include +int main() { + + int number1, number2, sum; + + printf("Enter two integers: "); + scanf("%d %d", &number1, &number2); + + // calculate the sum + sum = number1 + number2; + + printf("%d + %d = %d", number1, number2, sum); + return 0; +} From c854e2c20cd308f1f4b6c7d85126dabb26f64d4c Mon Sep 17 00:00:00 2001 From: Jay Deepika D <156066607+jaydeepika73@users.noreply.github.com> Date: Tue, 12 Mar 2024 14:35:25 +0530 Subject: [PATCH 2/3] Update sample.c --- sample.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sample.c b/sample.c index c8b7f7b..7eefd1d 100644 --- a/sample.c +++ b/sample.c @@ -11,4 +11,4 @@ int main() { printf("%d + %d = %d", number1, number2, sum); return 0; -} +}; From 27becc6f052de2d193b53656317700e0bc16bfe5 Mon Sep 17 00:00:00 2001 From: Jay Deepika D <156066607+jaydeepika73@users.noreply.github.com> Date: Tue, 12 Mar 2024 14:50:28 +0530 Subject: [PATCH 3/3] Update sample.c --- sample.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sample.c b/sample.c index 7eefd1d..002a58a 100644 --- a/sample.c +++ b/sample.c @@ -11,4 +11,4 @@ int main() { printf("%d + %d = %d", number1, number2, sum); return 0; -}; +};;