PRG/420 Week 4 Java 4.16 LAB: Two smallest numbers

Availability: In stock

Regular Price: $7.00

Special Price: $5.00

OR

PRG420 Week 4 Java 4.16 LAB Two smallest numbers

Double click on above image to view full picture

Zoom Out
Zoom In

More Views

Quick Overview

PRG/420 Week 4 Java 4.16 LAB: Two smallest numbers


Write a program that reads a list 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.


Ex: If the input is:
5 10 5 3 21 2
the output is:
2 3
To achieve the above, first read the integers into an array.
Hint: Make sure to initialize the second smallest and smallest integers properly.

Regular Price: $7.00

Special Price: $5.00

Details

PRG/420 Week 4 Java 4.16 LAB: Two smallest numbers

Write a program that reads a list 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.

Ex: If the input is:
5 10 5 3 21 2
the output is:
2 3
To achieve the above, first read the integers into an array.
Hint: Make sure to initialize the second smallest and smallest integers properly.

Product Tags

Use spaces to separate tags. Use single quotes (') for phrases.