#include <iostream>
using namespace std;
int main(){
double w,x,y,z,avg;
cout <<" PLEASE ENTER FOUR ENTRIES OF MARKS"<<endl;
cin >> w >> x >> y >> z;
avg=((w+x+y+z)/4);
if(avg>60){
cout <<"YOU PASS"<<endl;}
else{
cout<<"YOU FAIL"<<endl;
}
cout<<"YOUR AVERAGE MARK IS "<<avg<< endl;
return 0;
}
monroe85 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.