given non-negative integers x and n, x taken to the nth power can be defined as: x to the 0th power is 1 x to the nth power can be obtained by multiplying x to the n-1th power with x write a long valued function named power that accepts two int parameters x and n (in that order) and recursively calculates and returns the value of x taken to the nth power. 1 enter your code

Respuesta :

When referring to one of the bits of data supplied as input to a function, a parameter is a particular type of variable.

What are the parameters of a power function?

The base of a power function, however, is raised to a fixed exponent from a variable base. Simple scaling is accomplished using the parameter a, which raises or lowers the values of xb as a changes. The exponent or power of the parameter b affects the pace of growth or decay of the function.

A base's nth power, let's say "y," is the result of multiplying the base by itself n times. The fifth power of y is y*y*y*y*y, if we are to locate it.We can easily calculate power in R by using the power operator, which will also be used to create power sequences.

long power(int x, int n)

{

if(n==0)

return 1;

else{

return x* power(x, n-1);

}

}

To learn more about parameters refer to :

https://brainly.com/question/28249912

#SPJ4

ACCESS MORE