#include<iostream.h>
void main()
{
int num,lim,n,p;
cout<<"Enter number ypu want to calculate table\n";
cin>>num;
cout<<"Enter tlhe limit where you want to calculate the table\n";
cin>>lim;
for(n=1;n<=lim;n++)
{
p=num*n;
cout<<num<<" X "<<n<<" = "<<p<<endl;
}
}
void main()
{
int num,lim,n,p;
cout<<"Enter number ypu want to calculate table\n";
cin>>num;
cout<<"Enter tlhe limit where you want to calculate the table\n";
cin>>lim;
for(n=1;n<=lim;n++)
{
p=num*n;
cout<<num<<" X "<<n<<" = "<<p<<endl;
}
}
No comments:
Post a Comment