Write a program that asks the user for an integer and then prints out all its prime factors. For example, when the user enters 84, the program should print
2
2
3
7
Validate the input to make sure that it is not a character or a string or a negative number using a do loop.
Comments
Leave a comment