Comparison operators
📖 Scenario: You are creating a simple program to compare ages of two friends to see who is older.
🎯 Goal: Build a program that stores two ages, compares them using comparison operators, and prints the results.
📋 What You'll Learn
Create two integer variables with exact ages
Create a boolean variable to store the comparison result
Use comparison operators to compare the ages
Print the comparison results exactly as specified
💡 Why This Matters
🌍 Real World
Comparing values is common in programs that make decisions, like checking user age for access or sorting data.
💼 Career
Understanding comparison operators is essential for writing conditions and logic in any software development job.
Progress0 / 4 steps