+ 1
Write a program to give it a number. Its first factors.
for example: 15=3*5 16=2*2*2*2
3 Answers
+ 2
What kind of problem do you have?
I guess that you had problems with the input statement?
+ 4
Example:
n=int(20)
-make a loop
-condition 1<=20
- if a number is divisible: it is factor of 20
+ 1
Thank you for your answer.