#include<time.h>
#include<iostream>
using namespace std;
void main()
{
    int num = 0;
    srand((unsigned)time(NULL));
    for (int i=0; i<10; ++i)
    {
        num = rand()%10;
        cout<<num<<endl;
    }

}