Advertisement
STANAANDREY

pc6

Oct 5th, 2022
920
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.   int x, y;
  5.   printf("x="); scanf("%d", &x);
  6.   printf("y="); scanf("%d", &y);
  7.  
  8.   if (!x) x++;
  9.   if (!y) y++;
  10.  
  11.   if (1LL * x * y >= 0LL) {
  12.     puts("acelasi semn");
  13.   } else {
  14.     puts("semne diferite");
  15.   }
  16.    
  17.   return 0;
  18. }
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement