subject
Computers and Technology, 22.02.2020 23:27 AdoNice

Write an if-else statement with multiple branches.
If year is 2101 or later, print "Distant future" (without quotes). Otherwise, if year is 2001 or greater, print "21st century". Otherwise, if year is 1901 or greater, print "20th century". Else (1900 or earlier), print "Long ago".

Sample output with input: 1776

What am I doing wrong here
I've tried it with =>
and just >

It isn't running the final submission

Testing with input: 1901
Output differs. See highlights below.
Your output
Long ago
Expected output
20th century


Write an if-else statement with multiple branches. If year is 2101 or later, print

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 12:00
What does the level 1 topic in a word outline become in powerpoint? a. first-level bullet item b. slide title c. third-level bullet item d. second-level bullet item
Answers: 1
question
Computers and Technology, 24.06.2019 03:30
It is not necessary to develop strategies to separate good information and bad information on the internet. true or false
Answers: 1
question
Computers and Technology, 24.06.2019 05:30
Cómo pongo un tomo de llamada sin pagar?
Answers: 1
question
Computers and Technology, 24.06.2019 09:50
Self contained sequences of actions to be performed are? a. expressions b. algorithms c. functions d. formulas
Answers: 1
You know the right answer?
Write an if-else statement with multiple branches.
If year is 2101 or later, print "Distant fu...
Questions
question
Physics, 26.08.2020 02:01
question
History, 26.08.2020 02:01
question
Spanish, 26.08.2020 02:01
Questions on the website: 13722367