+ 3
""" What is your problem/question? Can you be more explicit? Mathematical relation between % ( remainder ) and // ( integer quotient ) is: if a == x / y then a == ( y * ( x // y ) ) + ( x % y ) ... or, by a Python demonstration way: """ x=42 y=8 a = x // y print(a) r = x % y print(r) b = ( y * a ) + r print(b) print( ( y * ( x // y ) ) + ( x % y ) )
10th May 2017, 10:47 AM
visph
visph - avatar