Use the right loop for the right assignment, using all the follow- ing loops: for, while without hasNext(), while with hasNext() and do-while.
So I cannot use array.
it has to be done in java.
Extracted text: Take an unknown number of positive integers as input. Assume that the first number is always smaller than the second, all numbers are unique and the input consists of at least two integers. Print the second smallest integer. Example 10 12 2 5 15 The second smallest number is:5
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here