fork(1) download
  1. #include<stdio.h>
  2.  
  3. int main() {
  4. int x = 1,y=15,z=12;
  5. int result = x>y?y>z?1:z>x?2:3:y>z?4:z>x?5:6;
  6. // printf ("%u",u);
  7. printf("%d",result);
  8. }
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
4