I need help. I am trying to write a program that will allow the user to enter any number. The program will then display the factors of that number i.e. 24=2x2x2x3 . If the number is prime like 17, the program will just print to screen "number is prime. I'm a rank novice at this. What is the best loop to use for this program? I would greatly appreciate as much detail as you can afford to give. Thanks.

Signed,

Grey matter flatulence