>> Edit article
이름
제목
패스워드
#include <stdio.h> 실수했네요....ㅋㅋㅋ 첫번째꺼는 해결됐으니..두번째꺼는 2차원 배열을 써야합니다.... #include <stdio.h> const int row=4; const int col=3; int main() { //이차원 배열에 저장 int array[row][col]= { {13,15,16}, {21,23,4}, {8,17,43}, {13,55,36} }; printf("======================================"); printf(" 배열에 저장된 이차원 배월 출력 결과"); printf("======================================"); for(int i=0;i<row;i++) { for(int j=0;j<col;j++) printf(" %d",array[i][j]); printf(""); } printf("가로 :%d | 세로 :%d",col,row); printf(""); return 0; } ======================================================================= 즐거운 프로그래밍 세계 =======================================================================
Copyleft
1999-2026 by
JSBoard Open Project
Theme Designed by
IDOO
All right reserved