Pages

Wednesday, 10 September 2014

Program of do while loop , display 1-10 number



/////// do while \\\\\\\

#include<iostream>
using namespace std;

int main()
{
int i=1,a;
cout<<"enter the number : ";
cin>>a;
do
{
cout<<"\t\t"<<i<<"\n";
i++;
}while( i<=a );
return 0;
}

No comments:

Post a Comment

thnx for visiting my blog