1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #pragma warning (disable:4996) #include <stdio.h> #include <string.h> int main() { char word[5][31]; for (int i = 0; i < 5; i++) { scanf("%s", word[i]); } for (int j = 0; j < 5; j++) { printf("%s\n", word[4 - j]); } return 0; } | cs |
프로그래밍 문제/정올