0
This program is suppose to accept input then output fail when the input <50, average when = 50 and pass when > 50.but it's not.
4 odpowiedzi
+ 1
😮 thank you very much
+ 1
Adediran John Adeleke
You can also use else statement so no need to compare a == 50 because that would be default
if(a < 50)
cout << "fail" << endl;
else if (a > 50)
cout << "pass" << endl;
else
cout << "average" << endl;
+ 1
Ok thanks so much