Question: - Write a program that will generate 5 random numbers between 10 and 90 and assign each to a variable of datatype double. You should
- Write a program that will generate 5 random numbers between 10 and 90 and assign each to a variable of datatype double. You should use a random number generator seeded with time. Using a series of if statements, determine which of the 5 variables contains the smallest value generated. Print all five random numbers to the screen and print out the value that you determined was the smallest. All values should be printed with zero decimal places. HINT: Compare each number to a variable called min, then store the number into min if it's smaller
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
