
#include "iostream.h"
void main(){
int mark1,mark2,mark3,pass;
double TotalMark,Avg;
pass=0;
cout<<"Input Mark1 : "; cin>>mark1;
cout<<"Input Mark2 : "; cin>>mark2;
cout<<"Input Mark3 : "; cin>>mark3;
TotalMark=mark1+mark2+mark3;
Avg=TotalMark/3;
if(mark1>40)
pass++;
if(mark2>40)
pass++;
if(mark3>40)
pass++;
if(pass<2)>
else if(pass==2){
if(Avg<50)>
else
cout<<"You Pass this exams"<
}else
cout<<"You Pass this exams"<
cout<<"Your Total Mark is :"<
cout<<"Your Percentage Mark is "<
}
###############################################
Tidak ada komentar:
Posting Komentar