//#include <cstdlib>
#include <iostream>

using namespace std;

int main()
{
int t[100],i;
srand(time(NULL));
for (i=0;i<10;i++)
{
    t[i]=rand()%(1000+1);
}

for (i=0;i<10;i++)
{
    cout << t[i] << "\n";
}
cout << "\n";
for (i=9;i>=0;i--)
{
    cout << t[i] << "\n";
}
    
system("PAUSE");
return EXIT_SUCCESS;
}
