美文网首页
16.for循环

16.for循环

作者: lxr_ | 来源:发表于2020-12-15 10:13 被阅读0次

#include<iostream>

using namespace std;

int main()

{

    for (int i = 0; i < 100; i++)

    {

        int a = i % 10;

        int b = i / 10;

        if (a == 7 || b == 7 || i % 7 == 0)//0-99寻找含有7或者7的倍数的数

        {

            continue;

         }

        cout << i << endl;

    }

    system("pause");

    return 0;

}

相关文章

网友评论

      本文标题:16.for循环

      本文链接:https://www.haomeiwen.com/subject/izsawktx.html