Calculator – C:
#include<stdio.h> #include<conio.h> int main() { int a = 30; int b = 15; int c; int d; int e; int f; // assigning respective operations. c = a +b; d = a - b; e = a * b; f = a / b; // declaring output statements. printf("The sum of %d and %d is %dn", a, b, c); printf("The difference of %d and %d is %dn", a, b, d); printf("The product of %d and %d is %dn", a, b, e); printf("The divison of %d and %d is %dn", a, b, f); getch(); return 0; }