Help me with this.

Am trying to write a program with ranges using a switch statement.

#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 a
Last edited on
closed account (z05DSL3A)
First try using [code][/code] tags in your posts and make your code readable.
Topic archived. No new replies allowed.