Computer Science, asked by abhumika20, 9 months ago

Write a program that uses a method power() to raise a number m to power n. The method takes int values for m and n and returns the result correctly. Use a default value of 2 for n to make the function calculate squares when this argument is omitted. Write a main method to get the value of m and n to display the calculated result. In java plz answer fast.

Answers

Answered by asritadevi2emailcom
19

Explanation:

values for m and n and returns the result correctly. Use a default value of 2 for n to make the function calculate squares when this argument is omitted. Write a main method to get the value of m and n to display the calculated result. In java plz answer fast.lfkkfmdkdkdkdodeshd xbxjsbs djsjddksns djdkd

Answered by priyankasushma13
2

Answer:

n=5

m=4

s=pow(5,4)

print(s)

Explanation:

Similar questions