if(age>60)
{
cout << "you are old" << endl;
if(age>100)
{
cout << "you are old2" << endl;
}
else
{
cout << "you are old3" << endl;
}
}
else
{
cout << "you are young" << endl;
}
if(age>60)
{
cout << "you are old" << endl;
if(age>100)
{
cout << "you are old2" << endl;
}
else
{
cout << "you are old3" << endl;
}
}
else
{
cout << "you are young" << endl;
}
本文标题:17 - if / else Statement
本文链接:https://www.haomeiwen.com/subject/trrzgxtx.html
网友评论