This blog is very helpful for anyone . if u have new program then send me i will post its solution . rzainulabideen@gmail.com
Showing posts with label multiplication table using do while loop. Show all posts
Showing posts with label multiplication table using do while loop. Show all posts
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;
}
Subscribe to:
Posts (Atom)
