Master decision-making in C++ with if, else, else-if, and nested conditionals. Build logic and control flow skills through practical exercises.
Learn basic if-else statements by checking equality of two numbers using comparison operators.
Use modulo operator and if-else to determine if a number is odd or even. Learn when to omit braces.
Master else-if ladder by checking divisibility and reporting remainders. Mix brace styles effectively.
Use less than operator to check grade thresholds. Learn comparison operators and boundary conditions.
Compare two numbers to find minimum. Introduction to cmath library and min() function.
Use greater than operator to find maximum. Learn max() function and real-world applications.
Master three-way decision making with else-if ladder. Classify numbers into mutually exclusive categories.
Learn compound conditions with AND operator. Master mutually exclusive conditions and divisibility rules.
Track position on 2D grid with OR operator. Learn coordinate systems and character comparison.
Chain multiple OR conditions to classify characters. Master case-insensitive character validation.
Learn leap year logic with complex conditions. Master the 400-100-4 rule and operator precedence.
Learn switch statement for multi-way branching. Master case labels, break statements, and default handling.
Practice switch statement with 12 cases. Master month name mapping and range validation.
Determine if a character is uppercase or lowercase using ASCII ranges and conditional logic.
Classify characters as alphabet, digit, or special character using else-if ladder and ASCII ranges.
Calculate employee gross salary with conditional HRA and DA percentages. Master floating-point precision and iomanip.
Assign grades based on marks using else-if ladder. Learn range-based classification and optimize conditional logic.
Build a calculator with operator detection using character comparison. Master switch-like logic with else-if ladder.
Calculate electricity bills with tiered pricing and surcharges. Master cumulative calculations and real-world billing logic.
Apply triangle inequality theorem to validate three sides. Master compound conditions and geometric logic.
Classify triangles as Equilateral, Isosceles, or Scalene. Master conditional priority and logical operators.
Validate triangles using angle sum property. Master compound conditions with zero and negative checks.
Find the smallest value among three numbers. Master comparison logic and built-in min() function.
Find the largest value among three numbers. Master greater-than logic and built-in max() function.
Find the largest among four values. Master nested max() functions and C++11 initializer lists.
Sort three numbers in ascending order using C++ macros. Master preprocessor directives, ternary operators, and macro definitions.
Sort four numbers from largest to smallest using elimination logic. Master nested min/max functions and conditional elimination techniques.
Validate time format (HH:MM:SS) using range checking. Master 24-hour format validation and compound conditions.
Display min/max values of C++ data types using climits library. Master switch statements and understand signed/unsigned type ranges.
Validate dates with leap year detection and month-based day checking. Master complex multi-step validation and calendar logic.