closed what is while?

–1 vote
asked Jul 28 by Adrian (240 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

while(exp)

{
//statements;

1)condition checking

2)Body of the loop

}
0 votes
answered Jul 28 by Peter Minarik (4,550 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.
...