Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # coding: utf-8
- def main():
- nT = int(input("Digite qual tabuada quer: "))
- if nT < 0:
- nT *= -1
- tInicio = int(input("Número de início da tabuada: "))
- if tInicio == 0:
- print("Digite outro valor!\n")
- main()
- else:
- tFinal = int(input("Número final para a tabuada: "))
- if len(str(tFinal)) < 1:
- pass
- for x in range(tInicio, tFinal+1, 1):
- print("O resultado de %d x %d é %d" % (nT, x, nT*x))
- while True:
- main()
Advertisement
Add Comment
Please, Sign In to add comment