Add, Subtract, Multiply and Divide in C programming.

 

#include<stdio.h>
#include<conio.h>
int main()
{
int a,b;
printf("enter the value of a\n");
scanf("%d",&a);
printf("enter the value of b\n");
scanf("%d",&b);
printf("add of number=%d",a+b);
printf("subtract of number=%d",a-b);
printf("multiply of number=%d",a*b);

printf("divide of number=%d",a/b);
return 0;
}

Output: enter the value of a

20 

enter the value of b

5

 add of number=25 subtract of number=15 multiply of number=100 divide of number=4

Comments

Popular posts from this blog

Reverse table in c programming.

Simple interests in c programming