bsc

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

commit d31ad32aaf724d967e8e1b4a29c9942b96b5dda7
parent b93ec54819efbe6df794130e7af4adeab703f55d
Author: Amit Dutta <amitdutta4255@gmail.com>
Date:   Sun, 14 Sep 2025 19:09:05 +0530

Add files via upload
Diffstat:
Atution-c/APC-SPS-1.c | 21+++++++++++++++++++++
Atution-c/APC-SPS-2.c | 13+++++++++++++
2 files changed, 34 insertions(+), 0 deletions(-)

diff --git a/tution-c/APC-SPS-1.c b/tution-c/APC-SPS-1.c @@ -0,0 +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/APC-SPS-2.c b/tution-c/APC-SPS-2.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