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();
}
#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();
}
0 Comments