Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write two statements to read values for birthMonth and birthYear, separated by a space, then write a statement to output the month, a slash, and
Write two statements to read values for birthMonth and birthYear, separated by a space, then write a statement to output the month, a slash, and the year. End with newline. Ex: The output is shown for user input of: 1 2000 1/2000
Challenge 1.7.2: Read multiple user inputs Activity Write two statements to read values for birthMonth and birthYear, separated by a space, then write a statement to output the month, a slash, and the year. End with newline. Ex: The output is shown for user input of: 1 2000 1/2000 1 import java util. Scanner; 3 public class InputExample 4 public static void mainCString args) 1 Scanner scnr new Scanner System in int birthMonth 0; int birthYear 0; Your solution goes here 10 return 12 h 13 Run FeedbackStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started