Decision Making
Exercises
- Check whether an entered character is a vowel or a consonant.
- Build a calculator for addition, subtraction, multiplication, and division based on the user’s choice. Implement it once with an
if...else ladder and once with nested if statements.
Concepts practiced
if, else if, nested conditions, and input validation.
Click here for explanation and solution.