bsc

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

APC-SPS-001.c (617B)


      1 /*
      2  * Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025
      3  * Repo: https://github.com/notamitgamer/bsc
      4  * License: MIT
      5  */
      6 
      7 // WAP to perform arithmatic operation on integer data
      8 
      9 #include<stdio.h>
     10 int main() {
     11 	int a, b, sum, sub, multi, div, mod;
     12 	printf("Enter 1st number : ");
     13 	scanf("%d", &a);
     14 	printf("Enter 2nd number : ");
     15 	scanf("%d", &b);
     16 	sum = a + b;
     17 	sub = a - b;
     18 	multi = a * b;
     19 	div = a / b;
     20 	mod = a % b;
     21 	printf("\nSum = %d", sum);
     22 	printf("\nSubtraction = %d", sub);
     23 	printf("\nMultiplication = %d", multi);
     24 	printf("\nDivision = %d", div);
     25 	printf("\nModulas = %d", div);
     26 	return 0;
     27 }
© 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