Answer Posted / prits
#include <iostream>
using namespace std;
void main()
{
int max = 0;
int arr[10];
cout<<"Enter 10 numbers"<<endl;
for(int i = 0; i<=10; i++)
{
cin>>arr[i];
}
for(int i = 0; i<=10; i++)
{
if(arr[i]>max)
max =arr[i];
}
cout<<"Maximun of the 10 numbers is "<<max<<endl;
}
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
Can we use this pointer inside static member function?
How many namespaces are there in c++?
What is a list c++?
What is the exit function in c++?
Write about the scope resolution operator?
What is while loops?
What are register variables?
What is oop in c++?
What jobs can you get with a c++ certification?
What does std :: flush do?
How do you sort a sort function in c++ to sort in descending order?
Must accepts "Maestro Cards" Tax for bike should be less than 15 Total number of lanes is more than 10 Must provides monthly pass Write a method: boolean isGoodTollBridge(String[] cardsAccepted, String[] tollTax, boolean hasMonthlyPass, int numberOfLanes); String[] cardsAccepted A String array of names of card types accepted for payment of toll tax, it can be null if the toll does not accept any card String[] tollTax A String array of toll tax chart (say “Train : 300â€Â,â€ÂBullCart : 10â€Â) boolean hasMonthlyPass This parameter defines whether there is any monthly pass available or not int numberOfLanes This parameter defines the number of lanes for each side
What is an arraylist c++?
What is the difference between interpreters and compilers?
Explain how to initialize a const member data.