filmov
tv
Python Program to Find Factors of a Number

Показать описание
Hi,
In this video I tried to explain the Python Program to Find Factors of a Number.
Python Scripts
======================
Python Functions Solved
==========================
Python Programs Solved
============================
Factors of a number is said to be x if x can divide the number completely i.e, reminder is zero.
Below is the Python Program to Find Factors of a Number
==============================
number = int(input("Enter a number : "))
print("Factors of number are ...")
for x in range(1, number+1):
if number % x == 0:
print(x, end=" ")
Hope you liked this video. Thank you for watching it.
In this video I tried to explain the Python Program to Find Factors of a Number.
Python Scripts
======================
Python Functions Solved
==========================
Python Programs Solved
============================
Factors of a number is said to be x if x can divide the number completely i.e, reminder is zero.
Below is the Python Program to Find Factors of a Number
==============================
number = int(input("Enter a number : "))
print("Factors of number are ...")
for x in range(1, number+1):
if number % x == 0:
print(x, end=" ")
Hope you liked this video. Thank you for watching it.