How to write a program in C++ that prompts the user to input a positive integer. It should then output a message indicating whether the number is a prime number. (Note: An even numberis prime if it is 2. ann odd integer is prime if it is not divisible by any odd integer less than or equal to the square root of the number.)
Comments
Leave a comment