Write a C program to find out any values add, mul, division, remainder, sub.

Find out any values add, mul, division, remainder, sub.

#include<stdio.h>
#include<conio.h>
main()
{
int a,b,p,q,r,s,t;
printf("please enter the two values");
scanf("%d  %d",&a,&b);
p=a+b;
q=a*b;
r=a/b;
s=a%b;
t=a-b;
printf("add=%d mul=%d divison=%d remainder=%d sub=%d",p,q,r,s,t);
getch();
}

Post a Comment

0 Comments