카테고리 없음
c언어 개인낙서장(2차원배열)
신정재
2016. 5. 4. 23:14
반응형
#include <stdio.h >
int main(void)
{
int x,y;
int arr[3][3];
int count = 0;
for(y=0;y<3;y++){
for(x=0;x<3;x++){
arr[y][x] = count;
count++;
}
}
for(y=0;y<3;y++){
for(x=0;x<3;x++){
printf("%d\n", arr[y][x]);
}
}
return 0;
}
반응형