int main()
{
int sum=0,a,b;
int i;
cout<<"\nenter 2 number:";
cin>>a>>b;
if(a<b){
for(i=1;i<=b;i++)
sum+=a;
cout<<"\nthe sum is:"<<sum;
}
else if(a>b){
for(i=1;i<=a;i++)
sum+=b;
cout<<"\nthe sum is "<<sum;
}
return 0;
}
this is my solve but how to use recurtion?