#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
Recommended Answers
Jump to PostThink loop any time you want something to repeat. Just pick an appropriate control conditional for the loop and include any code you want to repeat within the body of the loop and you should be well on your way. If you don't already know there are three types of …
All 2 Replies
Reply to this topic
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.