C Program to Print to addition, subtraction, multiply and division of two number Or C Program to make a simple or arithmetic calculator
C Program to Print to addition, subtraction, multiply and division of two number Or C Program to make a simple or arithmetic calculator |
#include <stdio.h> #include <conio.h> void main() { int a, b, c; printf("Enter two number: "); scanf("%d %d", &a, &b); c = a + b; c = a - b; c = a * b; c = a / b; printf("The addition is = %d", c); printf("The subtraction is = %d", c); printf("The multiplication is = %d", c); printf("The division is = %d", c); getch(); } |
Output: Enter two number:12 6 The addition is = 18 The subtraction is = 6 The multiplication is =72 The division is =2 |
Comments
Post a Comment