AnandaVieira

Exercicio 4

Feb 25th, 2021 (edited)
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. # 4 - Faça um Programa que peça as 4 notas bimestrais e mostre a média.
  2.  
  3. n1 = float(input('Digite a primeira nota: '))
  4. n2 = float(input('Digite a segunda nota: '))
  5. n3 = float(input('Digite a terceira nota: '))
  6. n4 = float(input('Digite a quarta nota: '))
  7.  
  8. soma = n1 + n2 + n3 + n4
  9. media = soma / 4
  10. print('\nSua média é: ',media)
Add Comment
Please, Sign In to add comment