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

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!