1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | #include <stdio.h> #include <string.h> #pragma warning (disable:4996) int main() { char letter; do { scanf(" %c", &letter); if (('A' <= letter) && (letter <= 'Z')) { printf("%c\n", letter); } else if (('a' <= letter) && (letter <= 'z')) { printf("%c\n", letter); } else if (('0' <= letter) && (letter <= '9')) { printf("%d\n", letter); } else break; } while (1); return 0; } | cs |
프로그래밍 문제/정올