The following programs takes input of two numbers from user and add, subtract and divide two numbers.

Sample Input / Output :

Enter any two number : 20

10

Sum = 30

Subtracted value = 10

Multiplied value = 200

Division value = 2

Sample Input / Output :

Enter any two number : 20

10

Sum = 30

Subtracted value = 10

Multiplied value = 200

Division value = 2

// C Program to add, subtract, multiply and divide two numbers

#include<stdio.h>int main() { int a, b; printf("Enter any two number : "); scanf("%d",&a); scanf("%d",&b); printf("Sum=%d",a+b); printf("\nSubtracted value=%d",a-b); printf("\nMultiplied value=%d",a*b); printf("\n Division value=%d",a/b); return 0; }