1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
enot [183]
2 years ago
10

6. Write a C++ program to print the largest three elements in an array. ​

Computers and Technology
1 answer:
jasenka [17]2 years ago
7 0

Answer:

if (arr[i] > max) -> max3 = max2, max2 = max , max = arr[i]. else if (arr[i] > max2) -> max3 = max2, max2 = arr[i]. else if (arr[i] > max3) -> max3 = arr[i]. At the end of the loop, we will print all three values.

You might be interested in
What is the net stop command that will disconnect all share connections to the local PC?
77julia77 [94]
net stop <span>service 

https://technet.microsoft.com/en-us/library/bb490715.aspx
</span>
8 0
4 years ago
2.13.4 Colorful Caterpillarhel ????
exis [7]

Answer:

sorry don't know :(8685

3 0
3 years ago
How is Office 365 different from Windows Live Office?
Scilla [17]
<span>Office 2016 is the traditional Microsoft Office product that is sold for a single time fee up front. One pays to purchase it and can install it on one single PC or Mac to use for as long as they would like, it has no expiration date. Office 365 has no hefty up front fee, instead one is charged a monthly or annual fee to get access to the most up to date version of the product. Therefore, the answer is B.</span>
6 0
3 years ago
Bruh why is everyone skipping my question!!!!!!!
DiKsa [7]

Answer:

What is your question?

Explanation:

7 0
3 years ago
The faster alcohol is consumed, the faster it reaches the __________.
Anni [7]
The faster it reaches the bloodstream

6 0
3 years ago
Read 2 more answers
Other questions:
  • 4. When determining the tone of their tweets, marketers should consider
    8·1 answer
  • What is a device driver?
    9·2 answers
  • Why is important to maintain a naming convention within the company that is developing computer programs?
    6·1 answer
  • Ok so sometimes when i do something i see a box with a question mark in it, how do i remove it, i am on a macOs High Sierra earl
    11·1 answer
  • What sound signal tells another boater that you wish to pass on your starboard (right) side?
    15·1 answer
  • The common programming structure that implements "conditional statements" is called an____ statement.
    7·1 answer
  • The objective of this task is to use Scapy to estimate the distance, in terms of number of routers, between your VM and a select
    10·1 answer
  • The most common threats to your computer and your online safety come from what is called ____
    11·2 answers
  • Which type of variable has a text value
    6·1 answer
  • What is the current situation of drone technology in emergency rescue and recovery
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!