//Looping Structures - "do-while" Loop

#include<iostream>
using namespace std;

int main()
{
/*
	Syntex : 	do
			{
				Line 1;
				Line 2;
			} while (condition);
*/

	//In do-while loops, loop will allways run one time before checking the condition.
	//In while loops, Condition will be checked before entering the loop.
	//But in do-while loops, Condition will be checked at the end of the loop.
	
	int a = 1;

	do
	{
		cout << "This is loop " << a++ << endl; // "a" will be increased by 1 just after the "cout" statement executed.
	} while (a <= 5);

	return 0;	
}
