Help me out

Help me write a program that allows the user to key in marks and grades using a switch statement in the range
0-50 "fail"
51-70 "pass"
71-100 "distinction"
Where are you at with the program currently?
#include<iostream>usingnamespace std;int main(){int score;//Vraag de score cout <<"Score:"; cin >> score;//Switchswitch(score){case>=100: cout <<"a";break;case>=50: cout <<"b";break;case>=25: cout <<"c";break;case>=10: cout <<"d";break;case>0: cout <<"e";break;case==0: cout <<"f";break;default: cout <<"BAD VALUE";break;} cout << endl;return0;}How can I fix this problem? It's a console application.l
What is the problem? And do you think you could use [code][/code] tags and whitespace to make that readable? As it is, the code is basically illegible.
Topic archived. No new replies allowed.