Thursday 31 January 2013

tabel of give no using function in c++

include<iostream.h>
#include<conio.h>
void table(int a);
void main()
{
int t;
cout<<"enter table"<<endl;
cin>>t;
table(t);
getch();
}

void table(int a)
{
for(int n=1;n<=10;n++)
cout<<a<<"*"<<n<<"="<<a*n<<endl;
}

0 comments:

Post a Comment