Advertisement
Guest User

Untitled

a guest
Jun 29th, 2017
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. def potencia (n1,n2):
  2. return (n1**n2)
  3.  
  4. n1 = int(input("Digite o primeiro numero"))
  5. n2 = int(input("Digite o segundo numero"))
  6. if n1 and n2 >= 0:
  7. print('O resultado é', potencia(n1,n2))
  8. else:
  9. print("Digite numeros inteiros positivos")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement