I am reading the tutorials to learn C++, but I need to practice otherwise I'm not going to remember what I'm learning. Does anyone know a way for me to do some exercises or a project in which I could be involved ?? I have got a compiler (code block).
In the first exercise, it mentions switch statements, I don't know how it is possible to use switch statement to resolve this particular exercise. I used only "if statement" :
if ((score<=100)&&(score>=90))
cout<<"Level A"<<endl;
else if ((score<=89)&&(score>=80))
cout<<"Level B"<<endl;
else if ((score<=79)&&(score>=70))
cout<<"Level C"<<endl;
else if ((score<=69)&&(score>=60))
cout<<"Level D"<<endl;
else if ((score<=59)&&(score>=0))
cout<<"Level F"<<endl;