Relational Operators in C
📖 Scenario: You are creating a simple program to compare ages of two friends to see who is older.
🎯 Goal: Build a C program that uses relational operators to compare two age values and prints the comparison results.
📋 What You'll Learn
Create two integer variables named
age1 and age2 with exact values 25 and 30Create an integer variable named
isOlder to store the result of the comparisonUse the relational operator
> to check if age1 is greater than age2Print the value of
isOlder to show the comparison result💡 Why This Matters
🌍 Real World
Comparing values is common in programs that make decisions, like checking ages, prices, or scores.
💼 Career
Understanding relational operators is essential for writing conditions in software development, testing, and data validation.
Progress0 / 4 steps