#include
using namespace std;
double cal(int x ,int y) {
if(y == 1) {
return x;
}
return cal(x, y - 1) * x;
}
void main()
{
int x, y;
cout<<"enter x : " <
cout<<"enter y : " << endl;
cin >> y;
cout <<"result is :"<
#include
using
namespace
std;
double
cal(int
x
,int
y)
{
if(y
==
1)
{
return
x;
}
return
cal(x,
y
-
1)
*
x;
}
void
main()
{
int
x,
y;
cout<<"enter
x
:
"
<
>>
x;
cout<<"enter
y
:
"
<<
endl;
cin
>>
y;
cout
<<"result
is
:"<