| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main(void) { char name[3][20]; // 3명, 한글 한 글자 2bytes 이므로 3글자면 6bytes 여유있게 20bytes for (int i = 0; i < 3; i++) { printf("(%d) 이름 입력:", i + 1); scanf("%s", name[i]); } for (int i = 0; i < 3; i++) { printf("(%d) 이름: %s\n",i+1, name[i]); } } | cs |


C프로그래밍(프로그래밍언어) 실습게시판