Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Age

//g++  7.4.0

    #include<iostream>
using namespace std;
int main()
{
    int age;
    cout<<"Tell me your age"<<endl;
    cin>>age;
    if(age<18)
    {
    cout<<"You cannot access the website"<<endl;    
    }
    else if(age==18)
    {
        cout<<"You can get a kids pass for the website"<<endl;
        }
        else{
            cout<<"You can access the website"<<endl;
            }
return 0;
}
   
 run  | edit  | history  | help 0