top of page

소스 코드 제출

공개·회원 52명

숙제

#include <stdio.h>

int main()

{

int n,i,j,k=1,x=0,y;

int arr[100][100]={};

scanf("%d", &n);

y=n;

for(i=0; i<n*100; i++)

{

for(j=0; j<n*100; j++)

{

arr[i][j]=k++;

}

}

for(i=0; i<n; i++)

{

for(j=0; j<n; j++)

{

printf("%d ", arr[x][y]);

x++;

y--;

}

printf("\n");

}

return 0;

}

2회 조회
주소 : 경기도 용인시 광교중앙로 302 블루 스퀘어 602호
연락처 : 031) 216 - 1546 ,     031) 215 - 1546
사업자등록번호 : 465-92-00916
​학원 등록 제 4603호
bottom of page