. 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
- 5

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

11th Jan 2022, 3:19 PM
Swati Singh
Swati Singh - avatar
2 Answers
0
you simply just use pow(x, y) defined at cmath
11th Jan 2022, 4:57 PM
Rellot's screwdriver
Rellot's screwdriver - avatar