fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(){
  4. int age;
  5. printf("please enter your age: ");
  6. scanf("%d",&age);
  7. age<13 ? printf("your are child")
  8. :printf("you are senior");
  9.  
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
please enter your age: you are senior