diff options
Diffstat (limited to 'progs/a410.py')
-rw-r--r-- | progs/a410.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/progs/a410.py b/progs/a410.py new file mode 100644 index 0000000..b6dd166 --- /dev/null +++ b/progs/a410.py @@ -0,0 +1,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
\ No newline at end of file |