how to find the largest of given numbers in an array
Answer Posted / anmol.s.fattepur
void ANMOL()
{
int a[10],i,max,m;
pf("enter the range of array");
sf("%d",&m);
pf("enter the values:");
for(i=0;i<m;i++)
{sf("%d",&a[i]);
}
max=a[0];
for(i=1;i<m;i++)
{if(a[i]>max)
{max=a[i];
}}
pf("the max no:%d",max);
}
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is polymorphism in oops?
What is class in oop with example?
What is new keyword in oops?
What is the difference between procedural programming and oops?
Write a program to sort the number with different sorts in one program ??
What is the difference between inheritance and polymorphism?
What is overloading in oop?
Prepare me a program for the animation of train
What is the difference between a constructor and a destructor?
What is encapsulation with real life example?
What is polymorphism explain?
How does polymorphism work?
What is the point of oop?
when to use 'mutable' keyword and when to use 'const cast' in c++
I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...