프로그래밍/알고리즘

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

Ludere 2019. 3. 12. 23:31




#include <stdio.h>


int main(){

int i,j;

for(int i=2;i<=6;i++){

for(int j=i;j<=i+4;j++){

printf("%d ", j);

}

printf("\n");

}

}


반응형