Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int a,b;
- int sum,sub;
- float mul,div,mod;
- printf("enter two number");
- scanf("%d%d",&a,&b);
- sum=a+b;
- sub=a-b;
- mul=a*b;
- div=a/b;
- mod=a%b;
- printf("the sum is %d\n",sum);
- printf("the sub is %d\n",sub);
- printf("the mul is %f\n",mul);
- printf("the div is %f\n",div);
- printf("the mod is %f\n",mod);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement