Run ID:106114
提交时间:2025-01-15 13:59:44
#include <iostream> using namespace std; int main(){ int x,maxn=0; // for(int i=1;i<=10;i++){ // cin>>x; // if(x>maxn) // maxn=x; // // } int i=1; while(i<=10) { cin>>x; if(x>maxn) maxn = x; i++; } cout<< maxn; return 0; } /* Input 10 6 1 3 5 87 100 25 111 56 Output 111*/