SHARE
TWEET

Untitled

a guest Feb 22nd, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cont = 0
  2. total = 0.0
  3. matricula = int(input('Digite seu número de matrícula: '))
  4. while matricula != 0:
  5.     nome = str(input('Digite seu nome: '))
  6.     n1 = float(input('Digite o valor da primeira nota: '))
  7.     n2 = float(input('Digite o valor da segunda nota: '))
  8.     n3 = float(input('Digite o valor da terceira nota: '))
  9.     media = (n1 + n2 + n3) / 3
  10.     if media >= 6:
  11.         print('Aprovado!')
  12.     else:
  13.         print('Reprovado!')
  14.     cont = cont + 1
  15.     total = total + media
  16.  
  17. mediag = total/cont
  18. print('A média geral é: {}'.format(mediag))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top