closed what is while?

–3 votes
asked Jul 28 by Adrian (250 points)
closed Jul 28 by Admin
closed as a duplicate of: what is while?

2 Answers

0 votes
answered Jul 28 by rahul raju (140 points)
While is a iterative control statement.It is also called as Entry Controlled loop.While is faster than for loop.

The syntax of the while loop is



1)condition checking

2)Body of the loop

commented Aug 18 by Abhishek Tanwar (100 points)
can we write increment/update as well as condition inside while bracket/in place of while expression ex:

body of loop

0 votes
answered Jul 28 by Peter Minarik (7,160 points)
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.