Advertisement
metalni

Strukturno Labs #2

Oct 29th, 2019 (edited)
353
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.42 KB | None | 0 0
  1. /* Evaluiranje na izrazi. Nisto posebno, dadeni se izrazi i potrebno e da se analiziraat. Spored napravenite analizi potrebno e da se objasni na kakov nacin se dobieni rezultatite vo outputot.*/
  2.  
  3. #include <stdio.h>
  4.  
  5. int main() {
  6.     int x, y, z;
  7.     scanf("%d%d%d", &x, &y, &z);
  8.     y = ++x && (z+5 || --y);
  9.     printf("%d %d %d", x, y, z);
  10.     z = z-- || (x>y) && (x>z);
  11.     printf("%d %d %d", x, y, z);
  12.     return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement