all valid python 3

This commit is contained in:
Alex Brown
2018-10-20 14:45:08 -05:00
parent b566055e4b
commit ea2ddaaf6a
37 changed files with 76 additions and 1436 deletions

View File

@ -5,7 +5,7 @@ What is the smallest positive number that is evenly divisible(divisible with no
'''
from __future__ import print_function
n = int(raw_input())
n = int(input())
i = 0
while 1:
i+=n*(n-1)
@ -18,4 +18,4 @@ while 1:
if(i==0):
i=1
print(i)
break
break

View File

@ -13,7 +13,7 @@ def gcd(x,y):
def lcm(x,y):
return (x*y)//gcd(x,y)
n = int(raw_input())
n = int(input())
g=1
for i in range(1,n+1):
g=lcm(g,i)