Question: Write two cin statements to read in the values birthMonth and birthYear from input, respectively. Then, write a cout statement to output the month, a

Write two cin statements to read in the values birthMonth and birthYear from input, respectively. Then, write a cout statement to output the month, a dash ("-"), and the year. End with a newline.
Click here for examples
Ex 1: If the input is 42014, then the output is:
4-2014
Ex 2: If the input is 71997, then the output is:
7-1997

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!