switch (i)

{

case 1:

    cout << "i=1";

    break;

case 2:

    cout << "i=2";

    break;

case 10:

    cout << "i=10";

    break;

default:

    // In this place we write operators, that executes in all other values of the i

}