-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAula13.cs
50 lines (32 loc) · 993 Bytes
/
Aula13.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using System;
class aula11{
static void Main(){
//ELSE significa CASO CONTRÁRIO
string resultado;
int n1,n2,n3,n4,med;
Console.WriteLine("digite a sua nota:");
n1 = Int32.Parse(Console.ReadLine());
Console.WriteLine("digite a sua nota:");
n2 = Int32.Parse(Console.ReadLine());
Console.WriteLine("digite a sua nota:");
n3 = Int32.Parse(Console.ReadLine());
Console.WriteLine("digite a sua nota:");
n4 = Int32.Parse(Console.ReadLine());
med = (n1+n2+n3+n4)/4;
//if (med < 70){resultado=" Aprovado com sucesso";}
// if (med == 100){resultado = " Você é um mito";}
if (med >= 50){
if(med>=90){
if(med >90){resultado= "Aprovado com super louvor";
}else{
resultado="Aprovado com louvor";}
}else{resultado="Aprovado";
}
}else{
if (med>40){resultado= "Em recuperacao";
}else{resultado="reprovado";
}
}
Console.WriteLine("Seu resuldado foi: {0} você foi {1}",med, resultado);
}
}