Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- using namespace std;
- int main () {
- float p1, p2, p3, p4, r;
- cout << "Digite sua nota na 1° atividade: ";
- cin >> p1;
- cout << "Digite sua nota na 2° atividade: ";
- cin >> p2;
- cout << "Digite sua nota na 3° atividade: ";
- cin >> p3;
- cout << "Digite sua nota na 4° atividade: ";
- cin >> p4;
- r = p1 + p2+ p3 + p4;
- cout << "Sua nota final é: " << round (r) << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement