Using Python to visualize the div, mod and remainder of a number.

def divTheory(a,b):
n = a;
d = b;
q = n // d;
r = n % d;
print(n," = number n",d," = divisor n",q," = quotient n",r, " = remaindern");
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *