subject

Write an if-else statement with multiple branches. if givenyear is 2101 or greater, print "distant future" (without quotes). else, if givenyear is 2001 or greater (2001-2100), print "21st century". else, if givenyear is 1901 or greater (1901-2000), print "20th century". else (1900 or earlier), print "long ago". do not end with newline.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:00
Which of the following is a way the operating system prevents unknown or unauthorized users from accessing the system?
Answers: 2
question
Computers and Technology, 22.06.2019 11:30
Write a function so that the main program below can be replaced by the simpler code that calls function original main program: miles_per_hour = float( minutes_traveled = float( hours_traveled = minutes_traveled / 60.0 miles_traveled = hours_traveled * miles_per_hour print('miles: %f' % miles_traveled) sample output with inputs: 70.0 100.0 miles: 116.666667
Answers: 3
question
Computers and Technology, 23.06.2019 00:10
My has been slow anyone else’s ?
Answers: 1
question
Computers and Technology, 23.06.2019 21:00
Alcohol’s affects on the cornea and lens of the eye make it more difficult
Answers: 1
You know the right answer?
Write an if-else statement with multiple branches. if givenyear is 2101 or greater, print "distant f...
Questions
question
Mathematics, 18.12.2019 13:31
question
History, 18.12.2019 13:31
Questions on the website: 13722360