If-else statement
📖 Scenario: You are helping a small shop decide if a customer gets a discount based on their purchase amount.
🎯 Goal: Build a simple program that checks if the purchase amount is enough for a discount and shows the correct message.
📋 What You'll Learn
Create a variable to store the purchase amount.
Create a variable to store the discount threshold.
Use an if-else statement to check if the purchase amount is greater than or equal to the discount threshold.
Print a message showing if the customer gets a discount or not.
💡 Why This Matters
🌍 Real World
Stores often give discounts based on how much customers buy. This helps encourage bigger purchases.
💼 Career
Understanding if-else statements is important for making decisions in programs, like showing messages or calculating prices.
Progress0 / 4 steps