Answer:
#include <iostream>
using namespace std;
int main()
{
int birthMonth, birthYear;
cout << "Enter your Birth Month and Year" << endl;
cin>>birthMonth;
cin>>birthYear;
cout<<birthMonth;
cout<<"-";
cout<<birthYear<<endl;
return 0;
}
Step-by-step explanation:
Using C++ Programming Language, Firstly we declare to variables to hold the values for the birthMonth and birthYear. We then used a cout statement to prompt the user to input values for month and year, then three cout statements are used to display the output according to the question's specification.