输入10个整数,找出最大数
#include <iostream>
using namespace std;
int main()
{
int k,x,max;
cin>>x;
max=x;
for(k=2;k<=10;k++)
{
cin>>x;
if(max<x) max=x;
}
cout<<"Max="<<max<<endl;
cout << "Hello world!" << endl;
return 0;
}