c++ do-while loop

do-While loop in C++

The while loop does not allow body to be executed if test condition is false. The do-while loop is an exit controlled loop and its body is executed at least once. Syntax of do-while loop: do{statement;}while(Condition); Program 1.1: // C++ Program to print numbers from 1 to 5 #include <iostream>using namespace std;int main() {int i …

do-While loop in C++ Read More »