Media

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; class Media { private: float n1,n2,n3,n4; public: Media (float a, float b, float c, float d) { n1=a; n2=b; n3=c; n4=d; } void setNotas(float a, float b, float c, float d){ n1=a; n2=b; n3=c; n4=d; } float getMedia(){ return(n1+n2+n3+n4)/4; } }; int main(){ Media gustavo (4,3,4,2); cout << gustavo.getMedia(); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines