#include<iostream.h>
#include<conio.h>
int table ( int num , int num_1 )
{
if ( num_1 == 1 )
{
cout<<num<<" x "<<num_1<<" = "<<num * num_1 << endl ;
return 1 ;
}
else
{
table(num , num_1-1);
cout <<num<<" x "<<num_1<<" = "<<num * num_1 << endl ;
}
}
int main ()
{
int num , num_1;
cout<<"\n PrograM to Print TabLe \n\n";
cout<<"\n1. Starting Range : ";
cin>>num;
cout<<"\n2. Ending Range : ";
cin>>num_1;
cout<<"\n\n\n";
table( num , num_1 );
cout<<"\n\n\n";
}
- Blogger Comment
- Facebook Comment
Subscribe to:
Post Comments
(
Atom
)
0 comments:
Post a Comment