C & C++ language
Home
HTML
C&C++ language
Movies
Games
Softwares
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment