bsc

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

root / semester_1 / tuition-c / APC-SPS-001.c

APC-SPS-001.c (480B)


      1 // WAP to perform arithmatic operation on integer data
      2 
      3 #include<stdio.h>
      4 int main() {
      5 	int a, b, sum, sub, multi, div, mod;
      6 	printf("Enter 1st number : ");
      7 	scanf("%d", &a);
      8 	printf("Enter 2nd number : ");
      9 	scanf("%d", &b);
     10 	sum = a + b;
     11 	sub = a - b;
     12 	multi = a * b;
     13 	div = a / b;
     14 	mod = a % b;
     15 	printf("\nSum = %d", sum);
     16 	printf("\nSubtraction = %d", sub);
     17 	printf("\nMultiplication = %d", multi);
     18 	printf("\nDivision = %d", div);
     19 	printf("\nModulas = %d", div);
     20 	return 0;
     21 }
© notamitgamer • Site Built: 2026-09-05 01:53:16 UTC • git-mirror commit: c170d72 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror