Print out 5 biggest factors of a number that is entered.
I need help writing a program that will print out the 5 biggest factors of a number that is entered.
For example:
Enter A Number: 100
The 5 Biggest Factors Are: 100, 50, 25, 20, 20.
But if the number has less than 5 factors print out those factors.
For example:
Enter A Number: 7
The factors for 7 are : 1,7
Thanks Alot..