qfedu-basic-level/day7/d1.cpp

14 lines
213 B
C++
Raw Permalink Normal View History

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