Do While Loop in c++





This video tutorial explains the do while loop in c++.
You will learn the do while loop along with its syntax and example in detail.

source code for this tutorial

#include <iostream>

using namespace std;

int main()
{
    char input;

    do {
        cout << "Welcome to Learning lad"<<endl;
        cout <<"This is where you will find awesome video tutorials"<<endl;
        cout << "enter x to exit or any other key to see this message again"<<endl;
        cin >> input;

    }while( input != 'x' ) ;


    return 0;
}

 
Back To Top