This is the place for queries that don't fit in any of the other categories.
I want the user to input a number then the program outputs all the factors of that number. Please help. Thanks.
Last edited by stranac
on Sun Jan 12, 2014 7:54 pm, edited 1 time in total.
Reason: First post lock.
- Posts: 1
- Joined: Sun Jan 12, 2014 7:48 pm
The simplest way is to loop through all the numbers up to the user's input.
If the input is divisible by a number, output it.
If you need more help, show some effort.
Don't forget to use the force...I mean code tags.
Friendship is magic!
R.I.P. Tracy M. You will be missed.
- Posts: 1790
- Joined: Thu Feb 07, 2013 3:42 pm
Return to General Coding Help
Who is online
Users browsing this forum: Google [Bot], Yahoo [Bot] and 7 guests