Answer Posted / raj
int a[10],max=0;
cout<<"enter 10 numbers";
for(int i=0;i<10;i++)
{
cin>>a[i];
if(a[i]>max)
max=a[i];
}
cout<<"the maximum of entered 10 is"<<max;
Is This Answer Correct ? | 9 Yes | 6 No |
Post New Answer View All Answers
What is a driver program?
How can you quickly find the number of elements stored in a dynamic array?
What are proxy objects in c++?
Describe public access specifiers?
How to give an alternate name to a namespace?
What is enum class in c++?
What are 2 ways of exporting a function from a dll?
What are function prototypes?
Difference between Abstraction and encapsulation in C++?
What is object in c++ example?
declare an array of structure where the members of the structure are integer variable float variable integer array char variable access all elements of the structure using dot operator and this pointer operator
Is c++ vector a linked list?
What are c++ redistributables?
How did c++ get its name?
How do we balance an AVL Tree in C++?