Computer Science Hw21
Homework 2: Making Decisions
1. Rewrite the following switch statement as a nested if statement using a series of if … else statements
(
//if statement goes here
)
2. Rewrite the following compound expression as nested if statement:
int aValue, bValue;
if ((aValue > bValue) && (bValue == 10))
Console.WriteLine("Test Complete");
( //deduce your own value for variable aValue )
3. What is the result of following conditional expression:
(
//Paste or type your output here
)
COSC 1436