You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Crie um programa que leia duas notas de um aluno e calcule sua média, mostrando uma mensagem no final, de acordo
2
-
# com a média atingida:
3
-
# – Média abaixo de 5.0: REPROVADO
4
-
# – Média entre 5.0 e 6.9: RECUPERAÇÃO
5
-
# – Média 7.0 ou superior: APROVADO
6
-
n1=float(input('Digite sua nota:'))
7
-
n2=float(input('Digite sua segunda nota:'))
8
-
media= ( n1+n2 ) /2
9
-
print('A sua média é {}.'.format(media))
10
-
ifmedia<5.0:
11
-
print('Você foi REPROVADO!')
12
-
ifmedia>5.0:
13
-
print('Você esta de REUPERAÇÂO!')
14
-
ifmedia>=6.9:
15
-
print('Parabéns você passou!')
1
+
# Create a program that reads two grades from a student and calculates their average, displaying a message at the end, according to the acquired media:
2
+
# – Media below 5.0: FAILED
3
+
# – AVERAGE BETWEEN 5.0 and 6.9: RECOVERED
4
+
# – Media 7.0 or higher: PASSED
5
+
first_note=float(input('Enter your note:'))
6
+
second_note=float(input('Enter the second note:'))
0 commit comments