Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

closed what is while?

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

2 Answers

0 votes
answered Jul 28, 2020 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

}
commented Aug 18, 2020 by Abhishek Tanwar (100 points)
can we write increment/update as well as condition inside while bracket/in place of while expression ex:
while(i++>0)
{

body of loop

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