#include<stdio.h>
#include<stdlib.h>
int main()
{
char str[100][22];
int i=0;
int x;
while(1)
{
x=scanf("%[a-z|A-Z]",str[i]);//输入一个单词
if (getchar()=='\n') break;
if(x) i++;//一个单词一行
}
for(int j=i;j>=0;j--)
{
printf("%s ",str[j]);
}
return 0;
}

京公网安备 11010502036488号