Problem With Switch statement - c++
Guys look at this code and tell me where is the problem which in all value it shows invalid number which is default. #include <iostream> using namespace std; int main() { char marks; cout<<"Enter your Marks: "<<endl; cin>>marks; switch(marks){ case 'marks<=100 && marks>=90': cout<<"Your Grade Is A"<<endl; break; case'marks<90 && marks>=75': cout<<"Your Grade Is B"<<endl; break; case'marks<75 && marks>=50': cout<<"Your Grade Is C"<<endl; break; case'marks<50 && marks>=0': cout<<"You Failed!"<<endl; break; default: cout<<"Invalid number"<<endl; } return 0; }