Tutorialspoint

April Learning Carnival is here, Use code FEST10 for an extra 10% off

C# : Looping ( Coding Examples on Problem Solving)

person icon SUPRIO DUTTA

4.4

C# : Looping ( Coding Examples on Problem Solving)

Coding Examples on Problem solving

updated on icon Updated on Apr, 2024

language icon Language - English

person icon SUPRIO DUTTA

category icon Programming Languages,Problem Solving,Development,C#

Lectures -15

Resources -15

Duration -49 mins

4.4

price-loader

30-days Money-Back Guarantee

Training 5 or more people ?

Get your team access to 10000+ top Tutorials Point courses anytime, anywhere.

Course Description

 THIS COURSE has been designed to meet the requirements for understanding the looping in c#  and to make decision-making based on the 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 the condition to be tested is present in the 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 at 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 the 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.

Goals

What will you learn in this course:

  • Students who want careers in software development
  • Students who want careers in analytics and data sciences
  • Students at final years of the Btech and post graduate programs.

Prerequisites

What are the prerequisites for this course?

  • Understanding of any procedural-oriented language like C..ETC
C# : Looping ( Coding Examples on Problem Solving)

Curriculum

Check out the detailed breakdown of what’s inside the course

Problem solving
15 Lectures
  • play icon Largest of three 03:08 03:08
  • play icon Check for Armstrong Number 02:17 02:17
  • play icon Display Amstrong Numbers between 1 and 1000 02:26 02:26
  • play icon Binary to Decimal Conversion 05:18 05:18
  • play icon Count Occurance of Letters 03:52 03:52
  • play icon Check occurance of Leap Year 02:02 02:02
  • play icon Multiplication Table between limits 02:44 02:44
  • play icon Check for Paliandrome Integer.. 03:04 03:04
  • play icon Integer palinadromes between limits 03:39 03:39
  • play icon Perfect squares between two limits 02:35 02:35
  • play icon Permuation and Combination 04:39 04:39
  • play icon Prime Numbers between two Limit 02:32 02:32
  • play icon Check for String paliandrome 04:23 04:23
  • play icon Sum of sqaures of first N..NATURAL numbers 03:23 03:23
  • play icon Triangle Problem 03:02 03:02

Instructor Details

SUPRIO DUTTA

SUPRIO DUTTA

instructor

IT Professional with 8+ Experience in software training and more than 10+ years at undergraduate and graduate level mathematics. Mentoring Dotnet framework and its interrelated Corporate level Education .,Microsoft sql server, my sql oracle server,objected oriented programing langauge like c++ and Java... knowledge offered is with Advanced topics in the desktop applications and consumed projects are mainly comprising of Enterprise based applications,client relationship management and E-Commerce.

Course Certificate

Use your certificate to make a career change or to advance in your current career.

sample Tutorialspoint certificate

Our students work
with the Best

Related Video Courses

View More

Annual Membership

Become a valued member of Tutorials Point and enjoy unlimited access to our vast library of top-rated Video Courses

Subscribe now
Annual Membership

Online Certifications

Master prominent technologies at full length and become a valued certified professional.

Explore Now
Online Certifications

Talk to us

1800-202-0515