Question: progam c/C++ please Write a program that use a while structure to input a number and display its positive divisors (except 1 and itself) and
progam c/C++ please
Write a program that use a while structure to input a number and display its positive divisors (except 1 and itself) and exit the loop if it is prime number. A prime number (or a prime) is a natural number greater than 1 that has no positive divisors other than 1 and itself. For example: Input a number: 6 Its divisors: 2 3 Input a number: 12 Its divisors: 2 3 4 6 Input a number: 7 exit and stop the program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
