Advertisement
2607

d3q3

Sep 8th, 2021
1,492
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.21 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {  
  5.     int x, y;
  6.     scanf("%d %d", &x, &y);
  7.     if (y==0)
  8.     {
  9.         printf("n/a\n");
  10.         return 0;
  11.     }
  12.     printf("%d %d %d %d\n", x+y, x-y, x*y,x/y);
  13.     return 0;
  14. }
  15. /* No type check */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement