switch(variabel ose shprehje)
 {
case vlera1:
veprim 1; break;

case vlera2: 
veprim 2; break;
.
.
.
case vlera n: 
veprim n; break;

default:
veprim default; 
 }  


     #include <iostream>
using namespace std;
int main()
{
    int p;
    
    cout <<"Jepni numrin e pikeve"<<endl;
    cin>>p;
    
    if (p<=44)
    cout<<"Nota eshte 4"<<endl;
    
    else if (p<=54)
    cout<<"Nota eshte 5"<<endl;
    
    else if (p<=64)
    cout<<"Nota eshte 6"<<endl;
    
    else if (p<=74)
    cout<<"Nota eshte 7"<<endl;
    
    else if (p<=84)
    cout<<"Nota eshte 8"<<endl;
    
    else if (p<=94)
    cout<<"Nota eshte 9"<<endl;
    
    else
    cout<<"Nota eshte 10"<<endl;
    
    system ("pause");
    return 0;
}