Computer Science, asked by Answer00, 11 months ago

write a program to input a number and print it's factors. in python pls do not spam​

Answers

Answered by amruthamanisai587
4

Answer:

for i in range(n+1): '''here n is a given number'''

if(n%i==0):

print(i)

Explanation:

here the if-condition checks weather the reminder(here % represents reminder) is 0 when n is divided by i because if we get reminder as zero then it will be the factor of that number

Answered by haye0
3

Explanation:

this question is from course book of o'levels

Similar questions