how to find the largest of given numbers in an array
Answer Posted / jvhariharan
void main()
{
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 ? | 12 Yes | 0 No |
Post New Answer View All Answers
i got a backdoor offer in process global,Bangalore..Can i work with it?
What is balance factor?
Why is abstraction used?
What is polymorphism in oops with example?
What is the main purpose of inheritance law?
Can static class have constructor?
What is the point of oop?
What are the important components of cohesion?
What is solid in oops?
Is data hiding and abstraction same?
Prepare me a program for the animation of train
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
Why is oop better than procedural?
What is meant by oops concept?
What is abstraction in oop with example?