#include <iostream>
using namespace std;
int main()
{
string c;
string o;
string d;
string e;
int w;
cout<<"\t\t\t\t*******************************************"<<endl;
cout<<"\t\t\t\t* *"<<endl;
cout<<"\t\t\t\t* Welcome to our game *"<<endl;
cout<<"\t\t\t\t* *"<<endl;
cout<<"\t\t\t\t* answer the questions below to play *"<<endl;
cout<<"\t\t\t\t* *"<<endl;
cout<<"\t\t\t\t* *"<<endl;
cout<<"\t\t\t\t*******************************************"<<endl;
string name1,name2,name3,name4;
int age1,age2,age3,age4;
cout << "player (1) Enter your name" << endl;
cin >> name1;
cout << "player (1) Enter your age" << endl;
cin >> age1;
if(age1<=10 )
{
cout<<"you can not play"<<endl;
return 0;
}
else
{
cout<<"You can play"<<endl;
}
cout << "player (2) Enter your name" << endl;
cin >> name2;
cout << "player (2) Enter your age" << endl;
cin >> age2;
if(age2<=10 )
{
cout<<"you can not play"<<endl;
return 0;
}
else
{
cout<<"You can play"<<endl;
}
cout << "player (3) Enter your name" << endl;
cin >> name3;
cout << "player (3) Enter your age" << endl;
cin >> age3;
if(age3<=10 )
{
cout<<"you can not play"<<endl;
return 0;
}
else
{
cout<<"You can play"<<endl;
}
cout << "player (4) Enter your name" << endl;
cin >> name4;
cout << "player (4) Enter your age" << endl;
cin >> age4;
if(age4<=10 )
{
cout<<"you can not play"<<endl;
return 0;
}
else
{
cout<<"You can play"<<endl;
}
cout<<"\t\t\t\t========================================"<<endl;
cout<<"\t\t\t\t= ="<<endl;
cout<<"\t\t\t\t= ="<<endl;
cout<<"\t\t\t\t= you can start playing ="<<endl;
cout<<"\t\t\t\t= ="<<endl;
cout<<"\t\t\t\t= ="<<endl;
cout<<"\t\t\t\t= ="<<endl;
cout<<"\t\t\t\t========================================"<<endl;
cout<<"how many letters the word consists of?"<<endl;
cin>>w;
cout<<"enter your first player word."<<endl;
cin>>c;
if(c.length()==w )
{
cout<<"it's true"<<endl;
cout<<c<<endl;
}
else
{
cout<<"it's false"<<endl;
return 0;
}
cout<<"enter your second player word."<<endl;
cin>>o;
if(o.length()==w )
{
cout<<"it's true"<<endl;
cout<<o<<endl;
}
else
{
cout<<"it's false"<<endl;
return 0;
}
cout<<"enter your third player word."<<endl;
cin>>d;
if(d.length()==w )
{
cout<<"it's true"<<endl;
cout<<d<<endl;
}
else
{
cout<<"it's false"<<endl;
return 0;
}
cout<<"enter your fourth player word."<<endl;
cin>>e;
if(e.length()==w )
{
cout<<"it's true"<<endl;
cout<<e<<endl;
}
else
{
cout<<"it's false"<<endl;
return 0;
}
}