I think it's right.
<span>Text, numbers, graphics, or sound represented by discrete digits, such as 1s and 0s.</span>
Answer:
long power(int i)
{
return pow(2,i);
}
Explanation:
The above written function is in C++.It does not uses loop.It's return type is long.It uses the function pow that is present in the math library of the c++.It takes two arguments return the result as first argument raised to the power of second.
for ex:-
pow(3,2);
It means 3^2 and it will return 9.
Answer:
Check the explanation
Explanation:
10
5
3
21
2
-6
the output will be somthing like this:
2 21
You can then suppose that the list of integers will contain at least 2 values.