bsc

Comprehensive codebase and coursework for the 4-year B.Sc. Computer Science Honours degree (WBSU)

git clone https://github.com/notamitgamer/bsc.git
· rebuilt hourlyOpen on GitHub
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 }