6.16.7

// 6.16.7

include <stdio.h>

int main(void)
{
char word[100];
int length;

scanf("%s", word);
printf("word is %d\n", strlen(word));


for (length = strlen(word) - 1;length >= 0; length--)
{
    printf("%c", word[length]);
}
printf("\n");
return 0;

}

posted on 2019-03-24 19:24  viviLy  阅读(82)  评论(0编辑  收藏  举报