Skip to content

Commit

Permalink
Merge pull request #7 from glaubervila/feat/funcao_multiplica
Browse files Browse the repository at this point in the history
Closed #5 - funcionalidade de multiplicação
  • Loading branch information
matheusallein authored Nov 30, 2021
2 parents 1d48dbb + f711a3d commit 7e0ba86
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions calculadora.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,25 @@ def soma(a, b):
return int(a) + int(b)


def multiplica(a, b):
"""Retorna o resultado da multiplicação de dois números
Args:
a (int): número inteiro
b (int): número inteiro
Returns:
int: Resultado da multiplicação de "a" e "b"
"""
return int(a) * int(b)


if __name__ == "__main__":

print("---------- Caluladora Hardcoded ----------")

# TODO: Escrever exemplos usando as funçoes.

print(multiplica(2, 2))
print(soma(2, 2))

0 comments on commit 7e0ba86

Please sign in to comment.