mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-19 10:48:58 +08:00
all valid python 3
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user