Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Entrada de dados
- n = int(input("# Digite N: "))
- b = 2
- while True:
- # Calculos
- p = (b + (n / b)) / 2
- p_2 = p * p
- b = p
- if ((-1) * (n - p_2)) < 0.001:
- print(f"# Raiz quadrada de {n} = {p:.0f}")
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement