Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Mathematics/smallest common multiple/py/smallest-c-mul.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#Find the smallest common multiple of the given parameters that can be evenly divided by both

num1 = int(input("Type an integer: "))
num2 = int(input("Type another integer: "))

if num1 > num2:
x = num1
else:
x = num2

for i in range(x):
aux = num1 * i
if (aux % num2) == 0:
mmc = aux

print(mmc)