- 1
How to find the nth root of a number in c?
eg: 1024^(1/32)
8 Respostas
+ 2
Only note u need to write 1/32 as 1.0/32 in pow function.... That's the trick
+ 3
Here's the code with the example 1024^1/32
https://code.sololearn.com/cd2HC74QdE4I/?ref=app
+ 2
I knew about pow but it's getting autocorrected to power so.... Never mind😏
+ 1
U can use the built in pow(x, y) function to perform x^y
+ 1
Martin Taylor I shared the code already