ENGR 121 Lecture Notes - Lecture 5: B Lab

39 views3 pages

Document Summary

Both variables must be true (logical output) Operation where if what is in () is true, it will carry out the action given right after the condition on the next line. Only executes if 1st condition is false; will check a second condition. If the if() and elseif() statements are false, follow the commands after this. **stops progressing as soon as a condition is satisfied. How to read: go down the lines until a condition is satisfied or the end; once an if statement is false, skip to the next else. ^^cases are similar to the if() statements where if the expression is entered, the commands after case_expr will take its place. Always add otherwise in a switch expression to show something for an expression that does not fit a case. Generates menu of choices for user input and asks user to click an option as their input choice.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents