Age by cpp programing using if nested

Age by cpp programing using if nested

#include 
#include 
int main()
{
    int age;
    clrscr();
    cout<<"Enter Age Yours";
    cin>>age;
    if (age>=10 && age<=50)
    {
        if (age>=10 && age<=18)
        {
            cout<<"You Teenager";
        }
        else
        {
            cout<<"not Teenager";
        }
    }
    else
    {
        if (age<10)
        {
            cout<<"You baccha";
        }
        else
        {
            cout<<"not a Baccha";
        }
    }
    getch ();
    return 0;
}
Enter your age: 34 Not Teenager

Comments

Popular posts from this blog

Speech Emotion Recogination