1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
natta225 [31]
3 years ago
7

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
Engineering
1 answer:
aalyn [17]3 years ago
3 0

Answer:

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);

   }

}

You might be interested in
Short-term memoryA) has a larger storage capacity than long-term memory.B) takes longer to retrieve than long-term memory.C) inv
zaharov [31]

Answer:D

Explanation:

Take longer time to retrieve than long term memory, involves transient modifications in the function of pre existing synapses, such as channel modifications.

6 0
3 years ago
Ethylene glycol, the ingredient in antifreeze, does not cause health problems because it is a clear liquid.
netineya [11]
B. false

Explanation: because it is
5 0
2 years ago
What is a motor cycle motor made out of
Natali5045456 [20]

Explanation:

a motorcycle Motor is made out of iron

4 0
3 years ago
Read 2 more answers
A renewable item is something that is capable of being replaced naturally.
djverab [1.8K]
The answer is False.
6 0
3 years ago
Read 2 more answers
Help please really fast!!
ra1l [238]

Answer:368 hdhtygtÿ

901 vuiøöńč

Explanation:

6 0
3 years ago
Other questions:
  • Airplanes typically have a Pitot-static probe located on the underside that measures relative wind speed as the airplane flies.
    6·1 answer
  • Which of the following is part of the highway
    11·2 answers
  • Ma puteti ajuta cu un argument de 2 pagini despre inlocuirea garniturii de etansare de pe pistonul etrierului de franare la un a
    10·1 answer
  • What was the most important thing you learned this school year in your engineering class and why did you choose this thing
    15·1 answer
  • 8.28 Water is the working fluid in an ideal Rankine cycle with superheat and reheat. Steam enters the first-stage turbine at 140
    13·1 answer
  • What test should be performed on abrasive wheels
    14·2 answers
  • Should i show my face?
    8·2 answers
  • 9. A piece of Cherry wood is 5/4 x 4" X 4'<br> What is the length in inches?
    10·1 answer
  • Although studs are sometimes spaced 24" O.C. in residential structures, a spacing of_____ O.C. is more commonly used.
    5·1 answer
  • Oil, with density of 900 kg/m3 and kinematic viscosity of 0.00001 m2/s, flows at 0.2 m3/s through 500 m of 200-mm-diameter cast-
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!