explain the loop statements in computer


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.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: explain the loop statements in computer
Reference No:- TGS0304244

Expected delivery within 24 Hours