fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.  
  5. int a;
  6.  
  7. int b;
  8.  
  9. for(a = 1; a <= 5; a++){
  10.  
  11. printf("カウントupします。%d\n",a);
  12. }
  13.  
  14. for(b = 5; b > 0; b--){
  15.  
  16. printf("カウントdownします。%d\n",b);
  17. }
  18.  
  19. return 0;
  20. }
  21.  
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
カウントupします。1
カウントupします。2
カウントupします。3
カウントupします。4
カウントupします。5
カウントdownします。5
カウントdownします。4
カウントdownします。3
カウントdownします。2
カウントdownします。1