fork(3) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5.  
  6. int x,y;
  7. int times = 0;
  8. for(x = 0, y = 0; (y != 10)&&(x < 5); x++) {
  9. printf("\r\n Times:%d, y=%d, x = %d", times, y, x);
  10. times++;
  11. }
  12.  
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 4420KB
stdin
Standard input is empty
stdout
 Times:0, y=0, x = 0
 Times:1, y=0, x = 1
 Times:2, y=0, x = 2
 Times:3, y=0, x = 3
 Times:4, y=0, x = 4