Question: Write C program Write a program that will generate 5 random numbers between 10 and 90 and assign each to a variable of datatype double.

Write C program
Write C program Write a program that will generate 5 random numbers

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!