Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int a, b, c;
- printf("Enter the first number: ");
- scanf("%d", &a);
- printf("Enter the second number: ");
- scanf("%d", &b);
- c = a+b;
- printf("a+b = %d \n",c);
- c = a-b;
- printf("a-b = %d \n",c);
- c = a*b;
- printf("a*b = %d \n",c);
- c = a/b;
- printf("a/b = %d \n",c);
- c = a%b;
- printf("Remainder when a divided by b = %d \n",c);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment