practice_C

Decision Making

Exercises

  1. Check whether an entered character is a vowel or a consonant.
  2. 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.