qfedu-basic-level/day7/d1.cpp

14 lines
213 B
C++

// 测试单分支结构
#include <iostream>
using namespace std;
int main()
{
cout << "请输入一个数: ";
int n;
cin >> n;
if (n % 2 == 0)
cout << n << "666" << endl;
return 0;
}