Listing 4
//Begin selection structure if(temp % 2 == 0){ cout << "Your number was even" << endl; }else{ cout << "Your number was odd" << endl; }//end else //End selection structure }//end doSelection Listing 4