![dschallipp](/avatars/44332.jpg)
dschallipp
15.04.2020 •
Engineering
Write two scnr.nextInt statements to get input values into birthMonth and birthYear. Then write a statement to output the month, a slash, and the year. End with newline. The program will be tested with inputs 1 2000 and then with inputs 5 1950. Ex: If the input is 1 2000, the output is: 1/2000
Solved
Show answers
More tips
- C Computers and Internet What Are Peers and Seeds in Torrenting?...
- H Health and Medicine 10 Simple Techniques on How to Boost Your Mood...
- G Goods and services How to Choose the Right High Chair for Your Baby?...
- S Style and Beauty Learn how to tie a keffiyeh on your head like a pro...
- S Style and Beauty How to braid friendship bracelets?...
Answers on questions: Engineering
- S Social Studies Assurance refers to: a. the role of public health in ensuring that essential community-oriented health services are available, which may include providing essential personal...
- A Advanced Placement (AP) Which Ariana Grande perfume is best? Which one do you recommend? :)...
- M Mathematics Hel Solve the inequality. -4 -2x +6 13 Enter your answer, as one inequality, in the box....
- C Computers and Technology What are the files required for energy minimization?...
Ответ:
import java.util.Scanner;
public class InputExample {
public static void main(String[] args) {
Scanner scnr = new Scanner(System.in);
int birthMonth;
int birthYear;
birthMonth = scnr.nextInt();
birthYear = scnr.nextInt();
System.out.println(birthMonth+"/"+birthYear);
}
}
Ответ:
Physical or behavioral
Explanation: