Răspuns:
#include <iostream>
using namespace std;
int main()
{
unsigned int n,i,mx;
cout<<"n=";
cin>>n;
int a[n];
for(i=0;i<n;i++)
{
cout<<"a["<<i<<"]=";
cin>>a[i];
}
mx=a[0];
for(i=0;i<n;i++)
if(a[i]>mx)
mx=a[i];
cout<<mx;
return 0;
}
Explicație:
Multumesc+5*+cel mai inteligent raspuns?