Advertisement
Mary-br

Exercício 4

Jul 12th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. q1 = float(input("Qual o valor da primeira carga?"))
  2. q2 = float(input("Qual o valor da segunda carga?"))
  3. d = float(input("Qual a distância entre as duas cargas?"))
  4. k = 9 * 10**9
  5. f = k * (q1 * q2) / d**2
  6. print(f"O resultado é: {f}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement