Skip to main content

Section 3.6 Selection-WE3-P1

Subsection 3.6.1 Subgoals for Evaluating Selection Statements

  1. Diagram which statements go together.
  2. For if-statement, determine whether expression is true or false.
  3. If true, follow true branch. If false, follow else branch (OR do nothing if there is no else branch).

Subsection 3.6.2 Select-WE3-P1

Use this given setup
int alpha = 2, beta = 1, delta = 3, eta = 0, gamma = 0;

Exercises Exercises

Q10: After executing the following code, the value in variable alpha is and the value in variable gamma is .
You have attempted of activities on this page.