if single-selection statement performs an indicated action only when the condition is true; otherwise, the action is skipped. The
else double-selection statement allows you to specify an action to perform when the condition is true and a different action when the condition is false. For example, the pseudocode statement
if grade is greater than or equal to 60 display “Passed” else display “Failed”
displays “Passed” if the grade is greater than or equal to 60, or “Failed” otherwise. In either case, after displaying occurs, the next pseudocode statement in sequence is “performed.”
The preceding if...else pseudocode statement can be written in C# as
if ( grade >= 60 ) Console.WriteLine( ...