Explain the loop statements in computer programming, C/C++ Programming

Explain the Loop Statements in Computer Programming?

1. C gives you a choice of three kinds of loop, while, do while and for.

2. The while loop remain repeating an action until an associated test returns false. This is useful where the programmer doesn't know in advance how many times the loop will be traversed.

3. The do while loops is alike, but the test take place after the loop body is executed. This make sure that the loop body is run at least once.

4. The 'For loop' is often used, typically where the loop will be traversed a fixed number of times as It is very flexible.

Posted Date: 6/11/2013 5:27:03 AM | Location : United States

Related Discussions:- Explain the loop statements in computer programming, Assignment Help, Ask Question on Explain the loop statements in computer programming, Get Answer, Expert's Help, Explain the loop statements in computer programming Discussions

Write discussion on Explain the loop statements in computer programming
Your posts are moderated
Related Questions
C Program for SORTING OF NUMBERS   main() {           int a[20],i,j,temp,n;           clrscr();           printf("ENTER THE MAXIMUM LIMIT: ");           scan

There are formal ways of reducing Boolean expressions in order to minimize the logic circuit. The two elementary ways of minimization are using Boolean expressions/De Morgan Theore

recursive sub programs

defining software crisis As the technology changes rapidly the requirement for the users' change, to part the growing demand of the user for trade,  business, and personal

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec

it is a class enclosed in the scope of another class. For illustration: // Example: Nested class // class OuterClass { class NestedClass { // ... }; // .

6999066263304447777077766622337778 -----> message sent by the first smuggler. my name is robert---------> message decoded by the second smuggler. Where ‘0’ denotes the "space".

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

Need someone to look over my assignment for correctness and make any necessary changes.

Smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new technology, they are send