Question: In C++ please write a program that reads list of integers, and outputs the two smaliest integers in the list, in ascending order The input

In C++ please
 In C++ please write a program that reads list of integers,

write a program that reads list of integers, and outputs the two smaliest integers in the list, in ascending order The input begins with an integer indieating the number of integers follow Ex If the input is 5 10 53 21 2 the output is You can assume that the list of integers willhave at least 2 values To acheve the above first read the integers into a vecton Hint Make sure to initialize the second smallest and smallest integers propery LAB 5.201: LAB Two umallest nuifibers 4/ main.cpp Load deflault template.. 1#include > n 10 vectorcints list; 12 for (int i .9; num 14 list. push.back(num) 15 ) 16 17 int min -list[0): 18 19 for (int 1 -0; in: i) ( efore submitting fer ring Belw typ Submit mode n no vausin the frst bo then dilitk Run program anid ervthe rogramis ouu second bo Eter program inout (optional) 1 12311 main.cpp Ru prprmom above)KYour Output (sho Program output displ ayed here

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!