Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def potencia (n1,n2):
- return (n1**n2)
- n1 = int(input("Digite o primeiro numero"))
- n2 = int(input("Digite o segundo numero"))
- if n1 and n2 >= 0:
- print('O resultado é', potencia(n1,n2))
- else:
- print("Digite numeros inteiros positivos")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement