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
Which of the following is the Boolean logical operator for OR in C#?
VashaNatasha [74]
This would be &&

Hope this helped
8 0
3 years ago
Read 2 more answers
What websites can help you learn about general career treads
Tcecarenko [31]
Hi!

The Bureau of Labour Statistics is a government site which is specifically made just for this purpose.

By using it, you have access to thousands of jobs with tons of great factual information. 

Hopefully, this helps! =)
6 0
3 years ago
True or False(T or F): Point-and-shoot cameras have only 1 lens. *
liq [111]

Answer:

True

Explanation:

Technically speaking they only have one.

7 0
3 years ago
One of the major disadvantages of application service providers (ASPs) is that they:
AVprozaik [17]

Answer:

do not guarantee that applications will fully meet an organization's needs.

Explanation:

An application service provider is a third-party group established to deliver commercial software applications and additional services related to such software and do so online and sometimes their services do not guarantee that their applications will fully meet an organization’s needs.

8 0
3 years ago
Containers for contaminated sharps must have several characteristics. What’s missing from the list? PuContainers for contaminate
Nadya [2.5K]
All sharps containers must be stored upright,be puncture-resistant, be labeled or color-coded red & leakproof on both the sides & the bottom! The last one is the one missing!
4 0
3 years ago
Read 2 more answers
Other questions:
  • Which of the following are types of formatting you
    12·2 answers
  • Write a function that takes an array of integers and its size as parameters and prints the two largest values in the array. In t
    5·1 answer
  • Every node (except of the last node) in a singly linked list contains ____
    5·1 answer
  • A program that interacts with another piece of software as it if were a human user is known as a(n) ________.
    5·1 answer
  • You find that you are missing a very important file. After much searching, you have determined that it is no longer on your comp
    13·2 answers
  • The primary function of application software is to apply the power of the computer to enable people, workgroups, and the entire
    7·1 answer
  • Which of the following is the best definition of a computer code? a secret language a mathematical language a language that comp
    10·2 answers
  • Which of the following activities does an effective team do?
    15·2 answers
  • _____ describes the layout of the screen. Block-based, Interface, Editor, Player
    11·2 answers
  • Write a format operation that builds a string for the float variable amount that
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!