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