poj 2687 逆序排放

#include<iostream>

#define N 100

using namespace std;

int main()

{

    int count,total;

    cin>>total;

    int a[N];

    for(count=0;count<total;count++)

        cin>>a[count];

    for(count=total-1;count>=0;count--)

        cout<<a[count]<<" ";

    return 0;

}

posted @ 2012-04-16 19:22  逝者*恋世  阅读(141)  评论(0编辑  收藏  举报