+ 1

If anyone can give answer and explain the answer to me, it would be very helpful for me...☺️🤞🏻

Create a function power() to raise a number m to power n. the function takes a double value for m and int value for n, and returns the result correctly. Use the default value of 2 for n to make the function calculate squares when this argument is omitted. Write a main that gets the values of m and n from the user to test the function.

3rd Sep 2020, 4:28 PM
Himangi Singh
Himangi Singh - avatar
2 Réponses
+ 2
This looks and feels like homework... have you given this a try? Can you share your attempt first? https://www.sololearn.com/Blog/38/8-simple-rules-to-get-help-from-the-community https://www.sololearn.com/Discuss/1316935/welcome-to-sololearn-forum
3rd Sep 2020, 4:39 PM
Steven M
Steven M - avatar