Question: Write a program that asks the user for whole integers. Read the input. Check if it is a positive integer number. keep on asking the
Write a program that asks the user for whole integers.
Read the input.
Check if it is a positive integer number. keep on asking the user for a positive integer number till the user gives you a positive integer number. Make sure you catch the characters.
Check if the variable is a prime number, display your answer with the corresponding validation as shown on the sample executable file.
Step by Step Solution
3.44 Rating (147 Votes )
There are 3 Steps involved in it
Heres a Python p... View full answer
Get step-by-step solutions from verified subject matter experts
