While loop in C++

while loop is a most basic loop in C++. while loop has one control condition, and executes as long the condition is true. The condition of the loop is tested before the body of the loop is executed, hence it is called an entry-controlled loop.

This is a companion discussion topic for the original entry at http://iq.opengenus.org/while-loop-cpp/