第13课 智商问题 《小学生C++趣味编程》

/*
试编一程序,输入一个200以内的整数IQ,
判断是不是天才。
*/
#include<iostream>
using namespace std;
int main( void )
{
	int iq; 
	cout<<"IQ:"; //提示信息                        
	cin>>iq;
	
	if ( iq > 140 ) 
	{
		cout<<"天才";
	}   
	
	return 0;
}

 


 

 

猜你喜欢

转载自blog.csdn.net/dllglvzhenfeng/article/details/121852125
今日推荐