Answered step by step
Verified Expert Solution
Link Copied!

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?image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning C# 5.0 Databases

Authors: Vidya Vrat Agarwal

2nd Edition

1430242604, 978-1430242604

More Books

Students also viewed these Databases questions

Question

Do all creditors have equal priority? Explain.

Answered: 1 week ago