Drag and drop the cin statements in the correct order to read input values into birthMonth and then birthYear. Then, drag and
drop the cout statements to output the month, a dash, and the year. End with a newline by outputting 'endl'.
Ex: If the input is 1 2000, then the output is:
1-2000
Note: Our autograder automatically runs your program several times, trying different input values each time to ensure your
program works for any values. This program is tested twice, first with the inputs 1 and 2000, and then with the inputs 5 and 1950.
How to use this tool
Unused
cin >> birthYear;
cout << birthMonth;
cout << endl;
cout << "-";
cin >> birthMonth;
cout << birthYear;
main.cpp
#include <iostream>
using namespace std;
int main() {
int birthMonth;
int birthYear;
Load default template...
}
return 0;