// Code derived from Stroustrup's PPP2 book// § 4.4.1.3 Switch technicalities// -and beginning on p 107#include<iostream>usingstd::cin;usingstd::cout;// you can label a statement using several case labelsintmain(){cout<<"Please enter a digit\n";chara;cin>>a;switch(a){case'0':case'2':case'4':case'6':case'8':cout<<"is even\n";break;case'1':case'3':case'5':case'7':case'9':cout<<"is odd\n";break;default:cout<<"is not a digit\n";break;}}