#include #include #define SIZE 40 void print_str(char *str) { char *p; p = str; while ((*p) != '\0') { printf("<%c>", (*p)); p++; } printf("\n"); printf("(%d文字:大文字%d文字 + 小文字%d文字)\n"); } int main(void) { char str[SIZE]; printf("英単語を入力してください:"); scanf("%s", str); print_str(str); return 0; }