Question: It keep saying that my output differs can u pls tell me what i did wrong? 6.15 LAB: Two smallest numbers Write a program that



6.15 LAB: Two smallest numbers Write a program that reads a ist of integers, and outputs the two smallest integers in the list, in ascending order The input begins with an integer indicating the number of integers that follow You can assume that the list will have at least 2 integers and fewer than 20 integers. Exif the input is: 10.5.21.2 the outpot ins To achieve the above, firstread the integers into an andw To achieve the above, first read the integers into an array. Hint Make sure to initialize the second smallest and smallest integers properly. \begin{tabular}{l|l} UAB \\ Activir & 6.15.1:LAB : Twosmallest numbers \end{tabular} LabProgram.java LabProgram.java 1.Compure output a Your output 2 and 3 2 compare putput a Output differs: See hyghlights beiow. inpot4123115 Your outpot 1 and I Expected output 1 and : 5 3 compare output in output differs see Haghights below - Your output i and 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
