bsc

Comprehensive codebase and cou...
Log | Files | Refs | README | LICENSE

commit 97e55ab5e8231c09841247a7151a392af254278c
parent 7a4d750f346c798a4bc17b1851ec147057a904af
Author: Amit Dutta <amitdutta4255@gmail.com>
Date:   Tue,  9 Sep 2025 19:32:08 +0530

Add files via upload
Diffstat:
Mtution-c/APC1.c | 22+++++++++++++++++++++-
Atution-c/APC2.c | 13+++++++++++++
2 files changed, 34 insertions(+), 1 deletion(-)

diff --git a/tution-c/APC1.c b/tution-c/APC1.c @@ -1 +1,21 @@ - +// WAP to perform arithmatic operation on integer data + +#include<stdio.h> +int main() { + int a, b, sum, sub, multi, div, mod; + printf("Enter 1st number : "); + scanf("%d", &a); + printf("Enter 2nd number : "); + scanf("%d", &b); + sum = a + b; + sub = a - b; + multi = a * b; + div = a / b; + mod = a % b; + printf("\nSum = %d", sum); + printf("\nSubtraction = %d", sub); + printf("\nMultiplication = %d", multi); + printf("\nDivision = %d", div); + printf("\nModulas = %d", div); + return 0; +} diff --git a/tution-c/APC2.c b/tution-c/APC2.c @@ -0,0 +1,13 @@ +/* WAP to swap two integers. Display both numbers +before and after swap */ + +#include<stdio.h> +int main() { + int a = 10, b = 20, temp; + printf("Before swap A : %d, B : %d", a, b); + temp = a; + a = b; + b = temp; + printf("\nAfter swap A : %d, B : %d", a, b); + return 0; +}
© notamitgamer • Site Built: 2026-07-21 13:58:23 UTC • git-mirror commit: 1037f62 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror