blob: b6dd16629ece8bf9cf07471a27dcf660bc13ffd5 (
plain)
1
2
3
4
5
6
7
8
9
10
|
def compute_Last_Digit(A,B):
variable = 1
if (A == B):
return 1
elif ((B - A) >= 5):
return 0
else:
for i in range(A + 1,B + 1):
variable = (variable * (i % 10)) % 10
return variable % 10
|