fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. for (int i = 1; i <= 3; i++)
  5. {
  6. printf("첫 번째 반복문 : %d\n", i);
  7. for (int j = 1;j <= 5;j++)
  8. {
  9. printf(" 두 번쨰 반목분 : %d\n",j);
  10. }
  11. }
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 5300KB
stdin
Standard input is empty
stdout
첫 번째 반복문 : 1
 두 번쨰 반목분 : 1
 두 번쨰 반목분 : 2
 두 번쨰 반목분 : 3
 두 번쨰 반목분 : 4
 두 번쨰 반목분 : 5
첫 번째 반복문 : 2
 두 번쨰 반목분 : 1
 두 번쨰 반목분 : 2
 두 번쨰 반목분 : 3
 두 번쨰 반목분 : 4
 두 번쨰 반목분 : 5
첫 번째 반복문 : 3
 두 번쨰 반목분 : 1
 두 번쨰 반목분 : 2
 두 번쨰 반목분 : 3
 두 번쨰 반목분 : 4
 두 번쨰 반목분 : 5