. Write a program in c++ which defines a function power() to return x raised to y. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

. Write a program in c++ which defines a function power() to return x raised to y.

11th Jan 2022, 2:25 PM
Swati Singh
Swati Singh - avatar
3 Answers
+ 1
Where is attempts?
11th Jan 2022, 2:50 PM
A͢J
A͢J - avatar
+ 1
You're supposed to multiply <x> by itself <y> times, and return the result.
11th Jan 2022, 4:08 PM
Ipang
0
I didn't understand the question
11th Jan 2022, 2:50 PM
Swati Singh
Swati Singh - avatar