1:代码如下:

// 3.1.cpp : 定义控制台应用程序的入口点。
//

#include "stdafx.h"

#include <iostream>
using namespace std;
void main()
{
    int iInput;
    cout << "输入一个整数" << endl;
    cin >> iInput; //输入一整型数
    if(iInput%2!=0) 
        cout << "这个整数是奇数" << endl;
}
View Code

相关文章:

  • 2022-12-23
  • 2021-09-22
  • 2021-08-24
  • 2022-12-23
  • 2022-12-23
  • 2021-08-18
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案