fork download
  1. #include <stdio.h>
  2. int main(void) {
  3. int n;
  4. printf(">");
  5. scanf("%d",&n);
  6. printf(" %d", n);
  7. if ( n == 0 ) {
  8. goto R;
  9. }
  10. R:
  11. printf("ok\n");
  12. }
Success #stdin #stdout 0s 2172KB
stdin
1
0
stdout
> 1ok