Question: 2 . 5 . 2 : Writing branches. 6 1 3 7 6 8 . 4 7 2 8 9 5 0 . qx 3

2.5.2: Writing branches.
613768.4728950.qx3zqy7
Jump to level 1
Using an elseif statement, write code that puts "Young adult" to output if userAge is less than 21.
Ex: If userAge is 20, then output is:
Young adult

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!