Question: In this program you need to determine whether the number given as input is a PRIME NUMBER or not. When the input is 0 or
In this program you need to determine whether the number given as input is a PRIME NUMBER or not. When the input is 0 or 1 print a statement "Please enter number greater than 1" and accept the input again. The program should keep accepting the number input again until the user chooses a "NO" option. The option to continue can be 'y', if the user provides any option other than 'y' TERMINATE the program.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
