Write an if-else statement with multiple branches.
If year is 2101 or later, print "Distant fu...
![subject](/tpl/images/cats/informatica.png)
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
![ansver](/tpl/images/cats/User.png)
Answers: 1
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
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](/tpl/images/cats/informatica.png)
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](/tpl/images/cats/informatica.png)
![question](/tpl/images/cats/informatica.png)
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?
Questions
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/fizika.png)
Physics, 26.08.2020 02:01
![question](/tpl/images/cats/mat.png)
Mathematics, 26.08.2020 02:01
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/biologiya.png)
Biology, 26.08.2020 02:01
![question](/tpl/images/cats/mat.png)
Mathematics, 26.08.2020 02:01
![question](/tpl/images/cats/istoriya.png)
History, 26.08.2020 02:01
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 26.08.2020 02:01
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/istoriya.png)
History, 26.08.2020 02:01
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 26.08.2020 02:01
![question](/tpl/images/cats/obshestvoznanie.png)
![question](/tpl/images/cats/es.png)
Spanish, 26.08.2020 02:01
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/geografiya.png)