pat1009

算法笔记原题

#include <iostream>
#include <stdio.h>
using namespace std;

int main()
{
    int num=0;
    char ans[90][90];
    while(scanf("%s",ans[num])!=EOF)
    {
        num++;
    }
    for(int i= num-1;i>=0;i--)
    {
        printf("%s",ans[i]);
        if(i>0) printf(" ");
    }
    return 0;
}

 

posted @ 2023-02-21 20:09  yaoyaoasddasdsa  阅读(16)  评论(0)    收藏  举报