UrbanPro
true

Search in

Looping in C

Shailendra Kumar
12/06/2020 0 0

Looping in C

The process of repeatedly executing a block of statements is known as looping”.

In looping, a sequence of statements is executed until some conditions for termination of the loop are satisfied. Generally, a program loop consists of two segments: (i)control statement  (ii) Body of the loop.

(i) Control statement tests specified conditions and then directs the repeated execution of the statements contained in the body of the loop.

(ii) Body of the loop is a statement-block, which may consist of one statement or more statements.

The loop may be categories in the following two types depending on the position of the control statements:-

(ii)Exit-controlled Loop: In case of an exit-controlled loop, the control checks the test-condition after executing the body of the loop. Do-while() loop come under this.

(I) Entry controlled Loop: In case of an entry-controlled loop, the control checks the test-condition before entering into the body of the loop. While () and for() loop come under this category.

Now, we are going to discuss, types of loop statements provided by C Language. There are three types:

(a) While() Loop

(b) do-while() Loop

(c) For () Loop 

0 Dislike
Follow 2

Please Enter a comment

Submit

Other Lessons for You

Global Enterprises at a Glance, MNC and other international forms of business
Global Enterprises: These companies have many markets other than their own country market (domestic market) to sell their product. Their products are available nearly all over the world. Why has globalization...

"Exploring Viroids: Unveiling Small RNA Agents and Their Impact on Plant Health
Viroids: Small RNA Infectious Agents Introduction to Viroids: Viroids are unique infectious agents made up of small, single-stranded RNA molecules. Unlike viruses, viroids do not have a protein...

SPECIAL EVENTS IN PARTNERSHIP
SPECIAL EVENTS IN PARTNERSHIP Admission Retirement Death Change in Ratio Combination When a New partner is admitted what are the changes occur? What are the things unavoidable changes? Can...

Accounting Cycle
Accounting Cycle Transactions ↓ Journal Entries ↓ Ledger ↓ Trial Balance ↓ Final Account

How to Study Theory Subjects for Your Exams
Most of the students complain that they are not able to study and remember theory subjects well.Three tips for them to deal with this:- Study the theory subjects the first thing in the early morning...
X

Looking for CBSE Schools Classes?

The best tutors for CBSE Schools Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn CBSE Schools with the Best Tutors

The best Tutors for CBSE Schools Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more