
Already know some of this? A 2-minute test skips the lessons you know.
Take the placement testA free 19-lesson course built from College Wallah's 2h 55m of YouTube video. 2 days at 90 minutes a day, with study notes and a quiz in every lesson. A 2-minute placement test skips what you already know.
Taught by College Wallah on YouTube. Videos play in YouTube's own player, so the creator keeps every view.
Understand the need for decision making in programming and learn the syntax and basic working of the if statement by checking if a number is even or odd.
Trace the execution flow of an if statement line-by-line to see how conditions are evaluated and code blocks are skipped or executed.
Replace two separate if checks with a single if-else block to efficiently handle mutually exclusive cases like even and odd numbers.
Write a program to determine if a given year is a leap year (divisible by 4) using the modulo operator.
Implement the absolute value logic using if-else: if the number is negative, multiply by -1; otherwise print the number as is.
Input cost price and selling price, then use if-else to calculate and print profit, loss, or neither.
Use nested if-else statements to find the greatest among three distinct numbers by comparing them pairwise.
Input three sides and check the triangle inequality theorem (sum of any two sides > third side) using logical AND.
Solve the divisibility problem using nested if-else: first check divisibility by 5, then inside that block check divisibility by 3.
Combine logical operators to check if a number is divisible by 5 or 3 but not by 15 (XOR-like behavior).
Learn the critical difference between assignment (=) which changes value and returns it, and equality (==) which compares values; see how using = inside if leads to bugs.
Refactor the nested greatest-of-three logic into a flat else-if ladder for better readability and efficiency.
Implement a grading system (A, B, C, D, Fail) using an else-if ladder to handle mutually exclusive ranges.
Input three coordinates, calculate slopes using double precision, and compare them to check if points lie on a straight line.
Determine if a point lies at the origin, on the x-axis, on the y-axis, or in a quadrant; learn to check origin first to avoid misclassification.
Learn the syntax `condition ? expr1 : expr2` as a one-line shortcut for simple if-else assignments or printing.
Analyze code snippets where integers are used directly as conditions: non-zero is true (1), zero is false (0); trace printf return values and assignment side-effects.
Understand that in C, any non-zero integer or expression evaluates to true in a condition, including characters (ASCII values) and assignment results.