Write a program that count how many prime numbers between the minimum and maximum values provided by
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a program that count how many prime numbers between the minimum and maximum values provided by user. If minimum value is greater than or equal to maximum value, the program should throw a Invalid Range exception and handle it to display a message to the user on the following format: Invalid range: minimum is greater than or equal to maximum.
For example, if the user provided 10 as maximum and 20 as minimum, the message should be: Invalid range: 20 is greater than or equal to 10.
Related Book For
Database Systems A Practical Approach to Design Implementation and Management
ISBN: 978-0132943260
6th Edition Global
Authors: Thomas Connolly, Carolyn Begg
Posted Date: