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 a break in the content that forces takes on to the next line
Dovator [93]

I DONT KNOW AT All what so ever


7 0
3 years ago
Read 2 more answers
8.10 quiz edhesive A swap is: a variable used to find the smallest value in an array an algorithm used to find a value in an arr
zmey [24]

Answer:

A swap is: an algorithm exchanging two values stored in variables

Explanation:

I just did it and got it right

8 0
2 years ago
High productivity will typically get you positive attention and feedback when you are on a job.
anygoal [31]
True, this is a true statement. 
7 0
3 years ago
Which is worse: Fast charging (Due to heat) or unplugging before reaching full capacity (On a normal charge)?
Ray Of Light [21]
Unplugging before reaching Capacity
4 0
3 years ago
(In C prog.) What is the difference between scanf, getche and getchar?
lara [203]
<span>getchar() only reads a single character input from any input stream.
getche() </span><span>reads a single character from the keyboard and displays immediately on output screen without waiting for enter key
scanf() reads the whole input line according to the data type you specified.</span>

7 0
3 years ago
Other questions:
  • Earthquakes with magnitudes between 1.0 and 2.9 on the Richter scale are
    11·1 answer
  • Text, numbers,graphics, sounds entered into a computer's memory during input operations are referred to as
    11·1 answer
  • What does the group on option do?
    10·1 answer
  • The amount of data produced worldwide is increasing by ___% each year.
    5·1 answer
  • You are attempting to upgrade a Windows Server 2008 R2 server to Windows Server 2016 Standard. What must be done in order to acc
    5·1 answer
  • Select the correct answer.
    15·2 answers
  • Android OS "AFTER" Alpha.<br><br> A. Bubblegum<br><br> B. Beta<br><br> C. Berry<br><br> D. Buzz Cola
    10·1 answer
  • Define Agricultural Era
    14·2 answers
  • how risk can impact each of the seven domains of a typical IT infrastructure: User, Workstation, Local Area Network (LAN), Local
    7·1 answer
  • 4.9 Code Practice: Question 4 Edhisive
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!