Programs have to make decisions: give a discount only above ₹500, show "Fail" below 40 marks. if/else is how you pick one path based on a condition that is true or false. Use it when the choice depends on ranges or combined conditions like marks >= 75 && attendance > 80. When you are matching one variable against many fixed values, a switch is usually cleaner.