Infotanar.eu - Számok oszthatóságának vizsgálata

Kód

def oszthato_e(szam, oszto):
    return szam % oszto == 0

szam = int(input("Add meg a számot: "))
oszto = int(input("Add meg az osztót: "))

# Tesztelés
print(oszthato_e(szam, oszto))