What is loop and its types.daigram …
CBSE, JEE, NEET, CUET
Question Bank, Mock Tests, Exam Papers
NCERT Solutions, Sample Papers, Notes, Videos
Posted by Gracy Topno 4 years, 1 month ago
- 1 answers
Related Questions
Posted by Manasvi Bhutada 5 months ago
- 1 answers
Posted by S A 4 months, 2 weeks ago
- 0 answers
Posted by Catherine Tympuiñ 4 months, 1 week ago
- 0 answers
Posted by Sanchi Kohati 4 months, 1 week ago
- 0 answers
Posted by Sameeha _ 3 months, 3 weeks ago
- 0 answers
Posted by Payal Kumari 8 months, 1 week ago
- 0 answers
Posted by Jeevesh Jeevesh 4 months, 4 weeks ago
- 1 answers
Posted by Jaysundar Vc 5 months ago
- 0 answers
Posted by Catherine Tympuiñ 4 months, 1 week ago
- 1 answers
myCBSEguide
Trusted by 1 Crore+ Students
Test Generator
Create papers online. It's FREE.
CUET Mock Tests
75,000+ questions to practice only on myCBSEguide app
Sia ? 3 years, 6 months ago
A Loop executes the sequence of statements many times until the stated condition becomes false. A loop consists of two parts, a body of a loop and a control statement. The control statement is a combination of some conditions that direct the body of the loop to execute until the specified condition becomes false. The purpose of the loop is to repeat the same code a number of times.
A while loop is the most straightforward looping structure. Syntax of while loop in C programming language is as follows:
<pre> while (condition) { statements; }</pre>A do...while loop in C is similar to the while loop except that the condition is always executed after the body of a loop. It is also called an exit-controlled loop.
<pre> do { statements } while (expression);</pre>Syntax of do...while loop in C programming language is as follows:
A for loop is a more efficient loop structure in 'C' programming. The general structure of for loop syntax in C is as follows:
<pre> for (initial value; condition; incrementation or decrementation ) { statements; }</pre>0Thank You