give variable description of the program ( to print 'm' raised to the power 'n' and square root of 'm'. The values of 'm' and 'n' are 25 and 3.
Answers
Answered by
0
Answer:
sorry I have no answer sorry
Answered by
0
Answer:1st----
Square root sqrtResult = sqrt(number);
sqrt() is a function in cpp to find suare root of a given number
----------------------------------------------------------------------------------2nd---- Power
int main()
{ int base,exp, i, result = 1;
cout << "Enter base and exponent\n";
cin >> base >> exp;
// Calculate base^exponent by repetitively multiplying base
for(i = 0; i < exp; i++)
{
result = result * base;
}
cout << base << "^" << exp << " = " << result; return 0;
}
I hope this answer will help you then make it brainliest
Similar questions