Skip to content

Instantly share code, notes, and snippets.

@franciscojsc
Created October 24, 2017 14:49
Show Gist options
  • Select an option

  • Save franciscojsc/479d9ae92b3536cefe258be86f9f6943 to your computer and use it in GitHub Desktop.

Select an option

Save franciscojsc/479d9ae92b3536cefe258be86f9f6943 to your computer and use it in GitHub Desktop.
CALCULAR RAIZ QUADRADA E CÚBICA EM PYTHON
raiz = float(input('Entre com o valor: '))
raizQ = raiz ** (1/2)
raizC = raiz ** (1/3)
print('A raiz quadrada foi {:.2f} e a raiz cúbica foi {:.2f}'.format(raizQ, raizC))
@estermartinsbarros
Copy link

Valeu, ajudou muito!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment