Write a do/while loop that repeatedly prints random numbers between 0 and 1000 until a number above

Question:

Write a do/while loop that repeatedly prints random numbers between 0 and 1000 until a number above 900 is printed. At least one line of output should always be printed, even if the first random number is above 900. Here is a sample execution:

Random number: 235

Random number: 15

Random number: 810

Random number: 147

Random number: 915

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: