Need help with factors program

Need to compose a program that asks the user to input any number and then the program will output its factors

example if they type 7 the program outputs 1 and 7 because 7 is only dividable by 1 and 7

Or if they type 13 the program outputs 1, 2, 3, 4, 6, 12 because 12 is only divided by those.

submitted by /u/athrowaway72
[link] [comments]

Leave a Reply