1:代码如下:

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

#include "stdafx.h"
#include<iostream>
using namespace std;
void main()
{
    int iInput;
    cout << "输入一个整数" << endl;
    cin >> iInput;    //从键盘中输入一个数
    (iInput%3==0 && iInput%5==0)?cout << "" : cout<<"no";    
    cout << endl;
}
View Code

相关文章:

  • 2021-08-24
  • 2022-01-10
  • 2021-08-23
  • 2021-05-19
  • 2021-05-24
  • 2022-12-23
  • 2021-05-26
  • 2021-06-25
猜你喜欢
  • 2021-10-20
  • 2022-12-23
  • 2022-12-23
  • 2021-05-12
  • 2021-08-16
相关资源
相似解决方案