c++程序—敲桌子

#include<iostream>
using namespace std;
#include<string>
#include<ctime>

int main()
{
    //敲桌子
    int i ;
    for (i = 1; i <= 100; i++)
    {
        if (i % 10 == 7 || i / 10 == 7 || i % 7 == 0) 
        {
            cout << "请敲桌子跳过" << endl;
            continue;
        }
        cout << i << endl;
    }

    
    system("pause");
    return 0;

}

 

posted @ 2020-02-29 13:26  Jackie_Wang  阅读(323)  评论(0编辑  收藏  举报