#include #include void main(void){ char str[100]; scanf("%s",str); printf("入力された文字列:%s 文字数:%d\n",str,strlen(str)); for(int i = strlen(str)-1; i < 0; i--){ printf("%d文字目:",i); if(str[i] == '<'){ printf(">\n"); }else{ printf("<\n"); } } }