#include<iostream>
using namespace std;
int main()
{
cin>>n;
int max=0;
for(int i=0;i<n;i++)
{
if(item>max)
{
max=item;
}
}
cout<<"Maximum no is :"<<max;
}
using namespace std;
int main()
{
int n;
cout<<"Enter the no of Inputs :";cin>>n;
int max=0;
for(int i=0;i<n;i++)
{
int item;
cin>>item;if(item>max)
{
max=item;
}
}
cout<<"Maximum no is :"<<max;
}
Comments
Post a Comment