Problem Solving using C Language

0 of 85 lessons complete (0%)

Conditional Statement

Challenge Questions

  1. Nested Discounts
    A store offers discounts:
  • If purchase > ₹5000 → 10% off
  • If purchase > ₹10000 → 20% off
  • Otherwise → No discount
    Write a program to compute the final amount.

2. Employee Bonus: If years of service > 5, give a bonus of 5% of salary; otherwise, no bonus.

3. Password Strength Checker: Check if a password contains at least one uppercase, one lowercase, one number, and one special character.

4. Triangle Type: Input sides a, b, c → Check whether it is scalene, isosceles, or equilateral.

5. ATM Withdrawal Check: Withdraw only if amount ≤ balance and multiple of 100. Input withdrawal amount and account balance