#include<iostream.h>
int strange_function (int x,int y)
{
if(x<y)
{
return 0;
}
else if(x==y)
{
return 1;
}
else if(x>y)
{
return strange_function( x-1 ,y)+(y,x-5);
}
return 0;
}
int main()
{
int x,y;
cout<<"Enter fisrt value :";
cin>>x;
cout<<"Enter second value:";
cin>>y;
cout<<"The strange result is : "<<strange_function(x,y);
}
No comments:
Post a Comment