Question: Write a Function that will take a number (from 2-20), and will return whether or not the number entered is prime. Then create a program

Write a Function that will take a number (from 2-20), and will return whether or not the number entered is prime. Then create a program that asks the user for a number (ensure it is between 2-20) and display a message stating whether or not the number is prime. The ASCII dice should look like one of the following examples: Enter a Number: 7 That number is prime Enter a Number: 20 That number is NOT prime

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!