美文网首页
17 - if / else Statement

17 - if / else Statement

作者: 社交帐号直接注册 | 来源:发表于2017-12-31 23:39 被阅读0次

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