Write a program which should first ask for 5 random numbers from 0-20 (user will input these numbers in no preset order).

What is the difference between “Excludes1” and “Excludes2” in ICD-10-CM?
August 4, 2017
Explain how religion and terrorism are interrelated. Summarize your findings regarding the underlying issues of major contemporary religious conflicts.
August 4, 2017
Show all

Write a program which should first ask for 5 random numbers from 0-20 (user will input these numbers in no preset order).

You are to write a program which should first ask for 5 random numbers from 0-20 (user will input these numbers in no preset order). Input these 5 numbers in variables called num1, num2, num3, num4, and num5.

When done, your program should sort these numbers (you will use lots of conditions to check order).

num1 should contain smallest number while num5 should contain the biggest.

display the contents of num1 through num5 on the screen.

Leave a Reply

Your email address will not be published. Required fields are marked *