N1 = int(input('Digite um número'))
print()
N2 = int(input('Digite um número'))
print()
if ((N1==0) or (N2==0)):
print('0')
else:
maior, menor = [N1,N2] if N1 >= N2 else [N2,N1]
result=0
Count=0
# print('menor = {} e maior = {}'.format(menor, maior)) # Puramente debug
if (menor>0):
while (Count<menor):
result=result+maior
Count = Count + 1
else:
while (Count>menor):
result=result-maior
Count = Count - 1
Count = -Count
print('Resultado = {}'.format(result))
print('Repetições = {}'.format(Count))
TjEgPSBpbnQoaW5wdXQoJ0RpZ2l0ZSB1bSBuw7ptZXJvJykpCnByaW50KCkKTjIgPSBpbnQoaW5wdXQoJ0RpZ2l0ZSB1bSBuw7ptZXJvJykpCnByaW50KCkKCmlmICgoTjE9PTApIG9yIChOMj09MCkpOgogICAgcHJpbnQoJzAnKQplbHNlOgogICAgbWFpb3IsIG1lbm9yID0gW04xLE4yXSBpZiBOMSA+PSBOMiBlbHNlIFtOMixOMV0KCiAgICByZXN1bHQ9MAogICAgQ291bnQ9MAogICAgCiAgICAjIHByaW50KCdtZW5vciA9IHt9IGUgbWFpb3IgPSB7fScuZm9ybWF0KG1lbm9yLCBtYWlvcikpICMgUHVyYW1lbnRlIGRlYnVnCgogICAgaWYgKG1lbm9yPjApOgogICAgICAgIHdoaWxlIChDb3VudDxtZW5vcik6CiAgICAgICAgICAgIHJlc3VsdD1yZXN1bHQrbWFpb3IKICAgICAgICAgICAgQ291bnQgPSBDb3VudCArIDEKICAgIGVsc2U6CiAgICAgICAgd2hpbGUgKENvdW50Pm1lbm9yKToKICAgICAgICAgICAgcmVzdWx0PXJlc3VsdC1tYWlvcgogICAgICAgICAgICBDb3VudCA9IENvdW50IC0gMQogICAgICAgIENvdW50ID0gLUNvdW50CiAgICBwcmludCgnUmVzdWx0YWRvID0ge30nLmZvcm1hdChyZXN1bHQpKQogICAgcHJpbnQoJ1JlcGV0acOnw7VlcyA9IHt9Jy5mb3JtYXQoQ291bnQpKQ==