#include"stdio.h"
#include"string.h"
int main()
{
int count=0;
char ch[100],str[80][26]={0};
int j1=0;
gets(ch);
int len=strlen(ch);
for(int j=0;j<len;j++){
if(ch[j]!=’ '){
str[count][j1]=ch[j];
j1++;
}else{
// j++;
count++;
j1=0;
continue;
}
}
int count1=0;
for(int j=count;j>=0;j–){
printf("%s",str[j]);
if(count1<count){
printf(" ");
count1++;
}
}
return 0;
}
PATb1009
最新推荐文章于 2022-07-12 17:28:17 发布