#include<iostream>
#include<conio.h>
using namespace std;
void table(int a)
{
for(int i=1;i<=10;i++)
{
cout<<a<<" x "<<i<<" = "<<a*i<<endl;
}
}
int main()
{
int a;
cout<<"please enter the value: ";
cin>> a;
table(a);
getch();
return 0;
}
#include<conio.h>
using namespace std;
void table(int a)
{
for(int i=1;i<=10;i++)
{
cout<<a<<" x "<<i<<" = "<<a*i<<endl;
}
}
int main()
{
int a;
cout<<"please enter the value: ";
cin>> a;
table(a);
getch();
return 0;
}
0 comments:
Post a Comment