mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-19 19:03:02 +08:00
all valid python 3
This commit is contained in:
@ -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
|
||||
|
@ -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