Tuesday, 19 March 2013

Stay Connected

I will tell you about new programs in C/C++ that I have done in my own lab.

Thursday, 7 March 2013

do...while Loop


C programming loops

Loops causes program to repeat the certain block of code until some conditions are satisfied. Loops are used in performing repetitive work in programming.

C while loop

Syntax of while loop:

while (test expression)

{
     statements to be executed.  
}



In the beginning of while loop, test expression is checked. If it is true, codes inside the body of while loop is executed and again the test expression is checked and process continues until, the test expression becomes false.