Tuesday, July 26, 2011

Introduction to "WHILE LOOP" in C and C++ programming language

While Loop in C and C++:-
                                                                     "While loop" is a very important  loop in C and C++ programming language it is very similar to "FOR LOOP" the only difference between FOR and WHILE loop is that, that In while loop we do not know the number of repetitions it depends on any type of condition but for loop do not depend on any type of condition a user is aware in advance of the numbers of the repetitions.
The syntax of "While Loop" is given below.

while(condition)
      {

       Body of While loop(block of statements);  

      }

The program related to "While Loop" will be given in the upcoming posts.

No comments:

Post a Comment