Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int x = 10; //initilize
- int y = 20;
- int sum = x + y;
- int mul = x * y;
- int div = y / x;
- int diff = y - x;
- printf("x + y = %d\n", sum);
- printf("x * y = %d\n", mul);
- printf("y / x = %d\n", div);
- printf("y - x = %d\n", diff);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement