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. | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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.

https://code.sololearn.com/cp12I6BDFwuu/?ref=app

22nd Aug 2022, 11:52 PM
Adediran John Adeleke
Adediran  John Adeleke - avatar
3 Respostas
+ 1
šŸ˜® thank you very much
23rd Aug 2022, 2:14 AM
Adediran John Adeleke
Adediran  John Adeleke - avatar
+ 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;
23rd Aug 2022, 2:45 AM
AĶ¢J
AĶ¢J - avatar
+ 1
Ok thanks so much
23rd Aug 2022, 6:00 AM
Adediran John Adeleke
Adediran  John Adeleke - avatar