Answers for "Find Factors of a Number using While Loop"

0

Find Factors of a Number using While Loop

print("Enter the Number: ")
num = input()

num = int(num)
print("\nFactors of", num)

i = 1
while i<=num:
    if num%i==0:
        print(i)
    i = i+1
Posted by: Guest on April-10-2022

Code answers related to "Find Factors of a Number using While Loop"

Python Answers by Framework

Browse Popular Code Answers by Language