《C++大学教程》 第九版 课后习题 5.27

《C++大学教程》 第九版 课后习题 5.27,第1张

《C++大学教程》 第九版 课后习题 5.27

转载的老师发的答案,关注我,随时更新答案,如果来不及了,可以私信我,我发给你们相应的答案

#include 
using namespace std;
int main()
{
    for (int counter = 1;counter <= 10;++counter)
    {
        if (counter != 5)
        {
            cout << counter << " ";
        }
    }
    cout << endl << "Skipped printing 5 without continue" << endl;
    return 0;
}

下面是运行结果:

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5650627.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-16
下一篇 2022-12-16

发表评论

登录后才能评论

评论列表(0条)

保存