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 split a string in c++?
Can you help me with this one? Make a program that when a user inputed a Product Name, it will display its price, and when the user inputed the quantity of the inputed product, it will show its total price. The output must be like this: Product Name: Price: Quantity: Total Price: ..this is the list of products to be inputed: Cellphone - 1500 Washing Machine - 5200 Television - 6000 Refrigirator - 8000 Oven - 2000 Computer - 11000 thanks..:D
What do manipulators do?
What gives the current position of the put pointer?
State the difference between delete and delete[].
How do you traverse a btree in backward in-order?
What does the nocreate and noreplace flag ensure when they are used for opening a file?
Do we have to use initialization list in spite of the assignment in constructors?
What is a loop? What are different types of loops in c++?
What is else syntax in c++?
Can you sort a set c++?
What is the difference between C and CPP?
Which sort does c++ use?
Explain the extern storage classes in c++.
How many types of modularization are there in c++?