设计编写C程序:输入10个整数,输出最大值

2025-06-22 17:19:45
推荐回答(1个)
回答1:

int i,m=0;
for(i=0,i<10,i++)
{ cin>>a[i];
if(a[i]>m)
m=a[i];
}
cout<