Question: First, read an integer from input into birthMonth using scnr . nextInt ( ) . Then, read another integer from input into birthYear using scnr

First, read an integer from input into birthMonth using scnr.nextInt(). Then, read another integer from input into birthYear using scnr.nextInt() again. Finally, write print statements to output birthMonth, a slash, and birthYear. End with a newline.
The program will be tested with inputs 12000, and then with inputs 51950.
Ex: If the input is 12000, the output is:
12000
Note:
The input values are provided by the program, so use scnr.nextInt() statements like birthmonth = scnr. nextInt(); to read the input values.
System.out.println(); ends the output with a newline. System.out.print(); does not end the output with a newline.
Learn how our autograder works
5577403595810.93z9y7
 First, read an integer from input into birthMonth using scnr.nextInt(). Then,

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!