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
You're working on a TV that has a hard coded list of channels (use an enum for this list) and you're asked to create a mechanism
ra1l [238]
Jsjsjsoos I jdkkskso I iDisks I iiddikdk I ididkkd
8 0
3 years ago
What is the best thing to do if you only want your close friends to be able to see your posts?
Zolol [24]
The answer is B (check your privacy settings) because almost all apps and websites have privacy settings that give you some options for who is allowed to see your posts.

Also, the other three answer choices don’t really respond to the question because they are not about who sees your posts, but what your posts are about.
3 0
3 years ago
Read 2 more answers
You use a web browser to search for “winter sweaters” on your laptop. Later, you are playing a game on your phone and an ad show
melomori [17]

Answer:

C

data mining

Explanation:

they are seeing what you are interested in and creating personalized adds

8 0
3 years ago
Read 2 more answers
Car rental agencies or taxi services often employ a _______ to service their vehicles on site.
Volgvan
The. answer is B technicians repair things 
4 0
3 years ago
Hey, do you have Twitter?
Tamiku [17]

lol i don't have twitter but i have wattpad @coderbee22 and pinterest @starqueenem i'm a bit of a nerd but yeah k bye XD

3 0
3 years ago
Other questions:
  • What is the last step in conducting url search
    11·1 answer
  • Which of the following information is okay to share on social networking site?
    11·2 answers
  • Write the following arithmetic expression as a valid C arithmetic expression: x = x + number
    9·1 answer
  • How does a cat get out of a bush?
    7·1 answer
  • Clara made ice-cream by mixing 200 g of strawberry juice with 500 g of cream. What is most likely the mass of the ice-cream form
    8·1 answer
  • Rtjfifjjir<br> jhjjbkjkjjgggjhvhjvhf
    9·1 answer
  • Which part of project management considers if employees will work at home or in the office?
    10·2 answers
  • What does Iamo mean? i keep on hearing it and idk what it means
    7·2 answers
  • 6
    7·2 answers
  • Different Betweens in SRAM and DRAM !
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!