Question: 4. Minimum Name: Exercise 12 4.java Write a program that gets a positive integer from the user. Allow the user to enter that many positive

4. Minimum Name: Exercise 12 4.java Write a program that gets a positive integer from the user. Allow the user to enter that many positive integers. Print out the smallest number. To help in this task, create a method called minimum0 that has the following header: public static int minimum(intI numbers) The idea of minimum is to take as input an array of numbers and to return as output the smallest of those numbers. Sample Runs: How many numbers? 10 Enter 10 numbers: 100 9 4 2 87 96 32 12 56 98 45 Minimum:2 How many numbers? 5 Enter 5 numbers: 5 2 1 3 4 Minimum: 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
