Author | Message |
---|---|
avataricky
Posts: 19
|
Posted 23:05 May 09, 2016 |
Can someone help me with this question i have no idea how to even get started. This is the only one i have left. |
rcamach7
Posts: 31
|
Posted 00:20 May 10, 2016 |
Sure! For this one you'll need to use nested loops. Your first loop will count from 1 to 10,000. You'll then have to find a way to figure out if there are any numbers below you current number (from your first loop, without counting that number) that evenly divide into it. You'll then need to verify if they sum up to the original number, and if so print them. I believe Keenan gave us an outline on how the loop structure could be. Last edited by rcamach7 at
00:21 May 10, 2016.
|
avataricky
Posts: 19
|
Posted 06:57 May 10, 2016 |
Thank you i was really lost. |