int main()
{
int num, numrand, score;
char yn;
srand(time(NULL));
cout << "Do you want to play a game?(y/n)" << endl;
cout << "Your answer: "; cin >> yn;
if(yn == 'n' || yn == 'N')
return 0;
if (yn == 'y' || yn == 'Y')
cout << "Program will imagine a from 0 to 5 and you will try to guess it." << endl;
while(true){
cout << "Your number(Write -1 to quit.): "; cin >> num;
numrand = rand()%6;
if (numrand == num)
cout << "You win!" << endl;
Sleep(400);