c/기초

정올 547 : 반복제어문2-자가진단7

phantom0219 2019. 1. 11. 14:15



My Solution


1
2
3
4
5
6
7
8
9
10
11
#include<stdio.h>
int main(void){
    int i,j;
    for(i=2;i<=6;i++){
        for(j=i;j<=i+4;j++){
            printf("%d ",j);
            }
        printf("\n");
    }
    return 0;
}
cs


반응형