Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

zyBooks catalog @ Help/ ACTIVITY34 Mutbranch if else statement Print century Wnite an if-else statement with multiple branches. If givenYear is 2100 or greater, print

image text in transcribed
zyBooks catalog @ Help/ ACTIVITY34 Mutbranch if else statement Print century Wnite an if-else statement with multiple branches. If givenYear is 2100 or greater, print "Distant future" (without quotes) Else, if givenYear is 2000 or greater (2000-2099). print 21st century Else, if givenYear is 1900 or greater (1900-1999) print 20th century Else (1899 or earlier), print "Long ago Do NOT end with newline include using nanespace std 4 int main( ) s Int givenYear; 7 givenvear 1776; 9Your solution goes here 1e 11 return 0 12 Run Feedback

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

25 Vba Macros For Data Analysis In Microsoft Excel

Authors: Klemens Nguyen

1st Edition

B0CNSXYMTC, 979-8868455629

More Books

Students also viewed these Databases questions