0
How can I output numbers that evenly divide to the user's input number?
The user inputs a positive number. Then the computer outputs all the numbers less than or equal to the user's input number. Below each number, the computer outputs numbers that evenly divide to that number. Edit: I want the computer to output the numbers that have no remainders. For example, if the input is 15, the output would be: 15-> 1, 3, 5. But, it will also do the same for every positve number before 15. Ex: 1-> 1 2-> 1 2 3-> 1 3 ..... 15-> 1 3 5
3 Respostas
+ 1
I didn't understand what do you mean by evenly divide?
if input is 15 then what outputs you want?
0
then according to this for 15 it should be: 1 3 5 15
0
here I wrote code for you.
Please check it out
https://code.sololearn.com/cEekzPcs57p9/?ref=app