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 comma (","), and the year. End with a newline.
Click here for examples
Ex 1: If the input is 31984, then the output is:
3,1984
Ex 2: If the input is 51958, then the output is:
5,1958

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!