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
Get step-by-step solutions from verified subject matter experts
