Problem Description
The program finds the factors of a number, which means the other numbers which can divide the given number.
Eg: 5 is divisible by 5 and 1CODING ARENA
a=int(input())
for i in range(1,a+1):
if(a%i==0):
print(i)
Test Case 1
Input (stdin)6
Expected Output1 2 3 6
Test Case 2
Input (stdin)5
Expected Output1 5
No comments:
Post a Comment