fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int num;
  6.  
  7. while(1)
  8. {
  9. scanf("%d",&num);
  10. if (num == 42){
  11. return(0);
  12. }
  13. else{
  14. printf("%d\n",num);
  15. }
  16. }
  17. return(0);
  18. }
Success #stdin #stdout 0s 3300KB
stdin
1
2
88
42
99
stdout
1
2
88