Introduction to Looping with While Loop in c++
This video tutorial introduces you to the concept of looping in c++.
You will learn what is a loop,how to use while loop,syntax of the while loop,loop counter variable,example for while loop in detail with examples.
source code for this tutorial
#include <iostream>
using namespace std;
int main()
{
int counter = 1;
while ( counter <= 30 ){
cout <<counter << " -> Learning Lad Rocks" <<endl;
counter++;
}
return 0;
}