Answer Posted / namitha
#include<iostream.h>
main()
{
int a[10],n;
cout<<"enter ten numbers:\n";
for(int i=0;i<10;i++)
{
cin>>a[i];
}
int max=a[0];
for(i=0;i<10;i++)
{
if(a[i]>max)
max=a[i];
}
cout<<"the maximum number is:"<<max<<endl;
}
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()
How does atoi function work?
What do you mean by storage classes?
What does ios :: app do in c++?
Do you know what are static and dynamic type checking?
Which bit wise operator is suitable for turning off a particular bit in a number?
What is the cout in c++?
What is doubly linked list in c++?
How is data hiding achieved in c++?
How do I start a c++ project?
What does ctime() do?
What is #include sstream?
What is a responder chain?
What's the "software peter principleā?
In inline " expression passed as argument are evalauated once " while in macro "in some cases expression passed as argument are evaluated more than once " --> i am not getting it plz help to make me understand....