Răspuns:
#include <iostream>
using namespace std;
int main()
{ int n1,n2,n3,n4;
float media;
cout<<"Nota 1: "; cin>>n1;
cout<<"Nota 2: "; cin>>n2;
cout<<"Nota 3: "; cin>>n3;
cout<<"Nota 4: "; cin>>n4;
media=(n1+n2+n3+n4)/4.0;
cout<<"Media : "<<media;
return 0;
}
Explicație: