write a program to input a number and print it's factors. in python pls do not spam
Answers
Answered by
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
3
Explanation:
this question is from course book of o'levels
Similar questions
Computer Science,
5 months ago
Social Sciences,
5 months ago
Science,
5 months ago
Chemistry,
11 months ago
Hindi,
11 months ago
India Languages,
1 year ago