I want to create a table of multiplication of entered number using function() property in c++.i hv created the code for this but it is not working.Below is the trial code made by me.
#include<iostream.h>
#include<conio.h>
void main()
int multiply(a)
{
int i;
for(i=0;i<11;i++)
{
a*=i;
return a;
}
}
int main();
{
int i,x;
clrscr();
cout<<"enter the nuber whose table is to be shown";
cin>>x;
for(i=0;i<11;i++)
{
cout<<multiply(a);
return 0;
}
getch();
}_
1
Expert's answer
2012-11-19T08:10:22-0500
#include <iostream> #include <conio.h> using namespace std;
Comments
Leave a comment