-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path0024.cpp
More file actions
37 lines (28 loc) · 882 Bytes
/
0024.cpp
File metadata and controls
37 lines (28 loc) · 882 Bytes
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
#include <iostream>
#include <stdlib.h>
/*====================================
* eXcript.com
* fb.com/eXcript
* ====================================*/
using namespace std;
int main() {
double nota1, nota2, nota3, nota4;
cout << "Digite a sua primeira nota do semestre >>> ";
cin >> nota1;
cout << "Digite a sua segunda nota do semestre >>> ";
cin >> nota2;
cout << "Digite a sua terceira nota do semestre >>> ";
cin >> nota3;
cout << "Digite a sua quarta nota do semestre >>> ";
cin >> nota4;
double soma = (nota1 + nota2 + nota3 + nota4);
soma = (soma / 4);
cout << "A sua media no semestre foi: " << soma << endl << endl;
if(soma >= 7){
cout << "Parabens! Voce foi aprovado!" << endl;
}else{
cout << "Eita! Voce foi reprovado!" << endl;
}
system("pause");
return 0;
}