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;

}

猜你喜欢

转载自www.cnblogs.com/hackerteen/p/12382572.html
今日推荐