+ 3

How can I make a program of n th root of any number in Java.

7th Aug 2017, 4:15 PM
Abhi
Abhi - avatar
3 ответов
0
I entered 343 and 3 . it displayed an answer 6.999
8th Aug 2017, 12:55 AM
Abhi
Abhi - avatar
+ 10
System.out.println(Math.pow(x, 1.0 / n)); prints nth root of x.
7th Aug 2017, 4:48 PM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 3
Using math functions may help you...good luck...
7th Aug 2017, 6:19 PM
Hashan Malawana
Hashan Malawana - avatar