[정올] Language Coder_반복제어문3_형성평가A_code149 (C)

두비니

·

2020. 4. 11. 01:16

 

 

#include <stdio.h>

int main() {

	int n, k=1;

	scanf("%d", &n);

	for (int i = 0; i < n; i++) {
		for (int j = 0; j < n; j++) {
			printf("%d ", k);
			k = (k + 2) % 10;
		}
		printf("\n");
	}


	return 0;
}