Answered step by step
Verified Expert Solution
Question
1 Approved Answer
How do you do this in Java? 5 -(Code only) Write a program that reads input numbers until the user types -1 to stop providing
How do you do this in Java?
5 -(Code only) Write a program that reads input numbers until the user types -1 to stop providing new numbers. Then, the program should output the smallest and the largest numbers provided by the user. Example Output: Enter number: 5 Enter number: 6 Enter number: 100 Enter number: -5 Enter number: 60 Enter a number:-1 Smallest number is-5 and largest is 100. Name your class Hw2pr5 and your file Hw2pr5.java
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started