Arithmetic operators
📖 Scenario: You are helping a small shop owner calculate prices and discounts for products.
🎯 Goal: Build a simple Ruby program that uses arithmetic operators to calculate total price, discount, and final price.
📋 What You'll Learn
Create variables with exact values for product price and quantity
Create a variable for discount rate
Calculate total price and discount amount using arithmetic operators
Print the final price after discount
💡 Why This Matters
🌍 Real World
Calculating prices and discounts is common in shops and online stores.
💼 Career
Understanding arithmetic operators is essential for programming tasks involving calculations.
Progress0 / 4 steps