Home / Expert Answers / Computer Science / if-integer-yearinput-is-in-the-inclusive-range-1960-1969-output-34-the-60s-34-1970-1979-output-pa617

(Solved): If integer yearInput is in the inclusive range: 1960 - 1969, output "The 60s". 1970 - 1979, output ...



If integer yearInput is in the inclusive range: 1960 - 1969, output "The 60s". 1970 - 1979, output "The 70s". 1980 - 1989, output "The 80s". Otherwise, output "Outside the range of study". End each output with a newline. import java.util.Scanner; public class DecadesCategories { public static void main(String[] args) { Scanner scnr = new Scanner(System.in); int yearInput; yearInput = scnr.nextInt(); /* Your code goes here */ } }



We have an Answer from Expert

View Expert Answer

Expert Answer


We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe