<filename>scripts/factors.py<gh_stars>0
# Script Name		: factors.py
# Author			: <NAME>
# Created			: 20th May 2017

# Description		: Find the number from its factors.

import math

print('The factors of the number you type when prompted will be displayed')
a = int(input('Type now // '))
b = 1
while b <= math.sqrt(a):
	if a % b == 0:
		print("A factor of the number is ", b)
		print("A factor of the number is ", int(a/b))
	b += 1

<filename>scripts/factors.py<gh_stars>0
# Script Name		: factors.py
# Author			: <NAME>
# Created			: 20th May 2017

# Description		: Find the number from its factors.

import math

print('The factors of the number you type when prompted will be displayed')
a = int(input('Type now // '))
b = 1
while b <= math.sqrt(a):
	if a % b == 0:
		print("A factor of the number is ", b)
		print("A factor of the number is ", int(a/b))
	b += 1

# Script Name		: factors.py # Author			: <NAME> # Created			: 20th May 2017 # Description		: Find the number from its factors.