write a c program to find largest number in an array
Answers
Answered by
0
To finding largest number in case program enter the comp and # and /
Then u get the largest number will u got.
Then u get the largest number will u got.
Answered by
0
Answer:
#include<constream.h>
void main()
{
clrscr();
int a[10];
for(int i=0;i<10;i++)
{
cout<<"\n Enter any number:"
cin>>a[i];
}
int temp=a[0];
for(i=0;i<10;i++)
{
if(temp>a[i])
{
cout<<"\n Largest number:"<<temp;
}
else
{
temp=a[i];
}
}
getch();
}
Similar questions