Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def printTransition(mod, base):
- for n in range(mod):
- for t in range(base):
- result = (n * base + t) % mod
- print(f'({n} * {base} + {t}) % {mod} = {result}')
- print(f'{n} --{t}--> {result}')
- printTransition(3, 2)
- print()
- printTransition(6, 2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement