#include <iostream>
using namespace std ;
int main ( )
{
int a[5],max;
for ( int i = 0 ; i<5 ; i++ )
{
cout << " Enter a number ";
cin >> a[i];
}
max= a[0];
for ( int i=1 ; i<5 ; i++ )
{
if ( a[i] > max )
max= a[i];
}
cout <<" MAXIMUM NUMBER IS "<< max ;
return 0;
}
No comments:
Post a Comment
Must drop your comments about post.