import Lab1
result = Lab1.divAlg(103,10)
q1 = result[0]
r1 = result[1]
result2 = Lab1.divAlg(50,16)
result3 = Lab1.divAlg(72,9)
q2 = result2[0]
r2 = result2[1]
q3 = result3[0]
r3 = result3[1]

print("103/10 --- Quotient: {0} Remainder: {1}".format(q1, r1))
print("50/16 --- Quotient: {0} Remainder: {1}".format(q2, r2))
print("72/9 --- Quotient: {0} Remainder: {1}".format(q3, r3))
Esempio n. 2
0
import Lab1
result = Lab1.divAlg(100,3)
q = result[0]
r = result[1]
print(q)
print(r)