Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(){
- int x;
- cout<<"Informe a quantidade de questoes corretas = "<<endl;
- cin>>x;
- switch(x){
- case 0 ...49:
- cout<<"Conceito C"<<endl;
- break;
- case 50 ...90:
- cout<<"Conceito B"<<endl;
- break;
- case 91 ...100:
- cout<<"Conceito A"<<endl;
- break;
- default:
- cout<<"Valor invalido"<<endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement