diff --git a/Code/Factorial.py b/Code/Factorial.py index 7c19124..7f0ce93 100644 --- a/Code/Factorial.py +++ b/Code/Factorial.py @@ -1,7 +1,7 @@ -x = input() +x = int(input("Enter a Number: ")) ans = 1 while(x>0): - ans*=x - x-=1 + ans *= x + x -= 1 -print ans +print(ans) diff --git a/Code/divide.py b/Code/divide.py index b4ea620..1c54368 100644 --- a/Code/divide.py +++ b/Code/divide.py @@ -4,11 +4,11 @@ if num2==0: - print 'Denominator cannot be 0' + print('Denominator cannot be 0') else: Division=float(num1)/float(num2) - print Division + print(Division)