Question: Tasks / Skills Using if statements Using loops Steps Ask the user to enter a positive number. Give an error and do not continue with

Tasks / Skills Using "if" statements Using loops Steps Ask the user to enter a positive number. Give an error and do not continue with the rest of the program if they enter a number less than or equal to zero. Determine if the number that was entered is prime or not. Display the number and indicate if the number is prime or not. Testing Your Program. Below is sample input and output. You results may be different depending on the numbers entered by the user. The data entered by the user running your program is in red below. Screen capture the results and include it when you submit your C++ file to Canvas. H:\>g++ Small2.cpp -o Small2.exe H:\>Small2.exe Enter a positive whole number: 4 4 is not prime H:\>Small2.exe Enter a positive whole number: 77 77 is not prime H:\>Small2.exe Enter a positive whole number: 79 79 is prime H:\>Small2.exe Enter a positive whole number: -3 -3 is not a valid number H:\>
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
