Pages

Monday, 8 September 2014

program to Making a multiplication table using do while loop .......


Table with do while




#include<iostream>
using namespace std;

int main()
{
int i=1,a,b;
cout<<"enter the number of table : ";
cin>>a;
cout<<"enter the lenght :";
cin>>b;
cout<<"\n";
do
{
cout<<"\t\t"<<a<<"  *  "<<i<<"  =  "<< i * a <<"\n";
i++;
}
while( i<=b );

return 0;
}

No comments:

Post a Comment

thnx for visiting my blog