Solution:NIIT/GNIIT Sonugiri0032@gmail.com

Wednesday, January 06, 2016

Do while Loop in C++

Do while Loop in C++


Structure of the Problem Requirements 

The difference between the do while loop and other loop is that in do while loop the conditional part is separate to the iteration part .

Source Code 

#include<iostream>
using namespace std;
int main ()
{
 int i=0;
 do
 {
  cout<<i<<" .LEP is the Home of Developers " <<endl;
 i++;
 }
 while(i<5);
 }

Output of the Program

Do while Loop in C++
Share:

0 comments:

GNIITSOLUTION GNIIT SOLUTION. Powered by Blogger.

Translate

Blog Archive

Unordered List