While do Loop in C++ program
C++ is the programming Language developed from C developed by Dennis Ritchie and now it is the basic for any programming language as major benefits are only with C language.
While do Loop in C++ program
Hi there ,
First of all it is known as do while loop not while do loop.It comes under the category of exit controlled loop.
There are two types of loopÂ
1. Entry controlled loopÂ
2. Exit controlled loop
In entry controlled loop first the test expression is evaluated and the loop iterates if and only if the condition is true or else the loop will terminate and the condition is checked at the beginning before entering the loop.
In exit controlled loop , First the set of actions given is iterated then before the next iteration the condition test is checked and if its true the next iteration begins or if it is false the loop is terminated.
In this the loop is always executed once.
While do Loop in C++ program
TechyV is really great! Now I know what loop is.
Thanks Hoting Gracia and Lesten pasio for you solutions!