NBA - Boston Celtics

Sunday, 18 November 2012

TABLE USING FUNCTION


#include<iostream.h>
int a,ans,result;
int table(int a);
void main()
{
cout<<"enter a number to find its table : ";
cin>>a;
int result;
result=table(a);
}
int table(a)
{
for(int i=1;i<11;i++)
{
cout<<a<<"*"<<i<<"="<<a*i<<"\n";
}
}

No comments:

Post a Comment