
Demonstrate using a while loop to read two bounds, validate inputs, and display numbers within the range, illustrating looping and decision making in C#.
Learn do while and while loop patterns in C# and how condition checks govern iteration, ensuring at least one execution and handling numeric ranges with incremental updates.
Master the foreach loop to iterate over every element in a collection, using the item variable rather than an index, with practical C# examples from a list.
Explore if else statements in C# and how to evaluate conditions using comparison operators (>, <, >=, <=, ==, !=) and combine them with logical operators to drive decisions.
Learn how the break statement terminates loops and controls flow in C#, so only iterations one and two display while three is skipped.
Explore how goto and labels work inside nested loops to control flow, using switch and case statements, cases, defaults, and flow tracing in a C# problem solving context.
Apply if-else conditional logic to determine the largest of three integers in C# by comparing values, using nested and sequential conditions and handling implicit conversions.
Explore Armstrong numbers between 1 and 1000 using looping and decision making in C#. Learn to extract digits and test numbers to identify Armstrong numbers.
Explore how to identify Armstrong numbers in C# by summing the cubes of digits and comparing to the original number, using loops and conditional checks.
Convert binary to decimal through an iterative process using powers of two, showing binary 11110011 equals 243 after successive multiplications and additions.
Count letter occurrences in a sentence using loops and decisions in C# by scanning the input string, tracking counts, and using a flag to handle zero and nonzero results.
Master the leap year problem in C# by applying loops and decision making, with year checks and divisibility rules highlighted in the lecture caption.
Demonstrates generating a multiplication table for a given number between user-defined low and high limits using a for loop.
Investigate solving palindrome integer checks in c# by using a temp variable, a loop, and digit extraction with division by 10 and remainders to build a reversed number for comparison.
Generate all palindrome integers between a lower and upper limit by reversing digits with modulo 10 and division, and verify equality for each candidate.
Identify all perfect squares between two limits using loops and decision making in C#, including appropriate bounds checks.
Explore solving prime number problems in C# by looping from a lower limit to an upper limit, using a flag to test divisibility by 2 and 3, and printing primes.
Learn to detect palindrome occurrences in a sentence in C# by converting to lowercase, iterating with nested loops, and verifying characters against their reverse.
Learn to compute the sum of squares of the first N natural numbers by iterating from 1 to N, using squaring and addition, illustrating looping and decision making in C#.
Learn to determine whether a triangle is isosceles from three side inputs in C#, using conditional checks to produce the correct triangle type.
Demonstrate a nested switch to route decisions between the mechanical and computer departments using options one and two, with default handling for other cases.
THIS COURSE has designed to meet the requirements for understanding the looping in c# and to make decision making based on problem description. AND understand THE various types of Inheritance types that exist between child and parent classes.
Looping in a programming language is a way to execute a statement or a set of statements multiple times depending on the result of the condition to be evaluated to execute statements. The result condition should be true to execute statements within loops
Loops are mainly divided into two categories:
Entry Controlled Loops: The loops in which condition to be tested is present in beginning of loop body are known as Entry Controlled Loops. while loop and for loop are entry controlled loops.
1. while loop The test condition is given in the beginning of the loop and all statements are executed till the given boolean condition satisfies when the condition becomes false, the control will be out from the while loop.
2. for loop
for loop has similar functionality as while loop but with different syntax. for loops are preferred when the number of times loop statements are to be executed is known beforehand. The loop variable initialization, condition to be tested, and increment/decrement of the loop variable is done in one line in for loop thereby providing a shorter, easy to debug structure of looping.
Exit Controlled Loops: The loops in which the testing condition is present at the end of loop body are termed as Exit Controlled Loops. do-while is an exit controlled loop.
Note: In Exit Controlled Loops, loop body will be evaluated for at-least one time as the testing condition is present at the end of loop body.
1. do-while loop
do while loop is similar to while loop with the only difference that it checks the condition after executing the statements, i.e it will execute the loop body one time for sure because it checks the condition after executing the statements.
Infinite Loops:
The loops in which the test condition does not evaluate false ever tend to execute statements forever until an external force is used to end it and thus they are known as infinite loops.
Nested Loops:
When loops are present inside the other loops, it is known as nested loops.
Inheritance is an important pillar of OOP(Object Oriented Programming). It is the mechanism in C# by which one class is allowed to inherit the features(fields and methods) of another class.
Important terminology:
Super Class: The class whose features are inherited is known as super class(or a base class or a parent class).
Sub Class: The class that inherits the other class is known as subclass(or a derived class, extended class, or child class). The subclass can add its own fields and methods in addition to the superclass fields and methods.
Reusability: Inheritance supports the concept of “reusability”, i.e. when we want to create a new class and there is already a class that includes some of the code that we want, we can derive our new class from the existing class. By doing this, we are reusing the fields and methods of the existing class.