Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //All arithmetic operations(+,-,*,/,%)//
- #include<stdio.h>
- int main()
- {
- int a,b,add,sub,mul,div,rem;
- printf("Enter two number:");
- scanf("%d %d",&a,&b);
- add=a+b;
- sub=a-b;
- mul=a*b;
- div=a/b;
- rem=a%b;
- printf("Addition is %d\n",add);
- printf("Subtraction is %d\n",sub);
- printf("Multiplication is %d\n",mul);
- printf("Division is %d\n",div);
- printf("Reminder is %d\n",rem);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement