31st Mar 2021, 8:43 AM
CPPlus
6 Answers
+ 4
pow(x, 1 / n)
31st Mar 2021, 8:48 AM
Gordon
Gordon - avatar
+ 3
the answer is in your line 65
31st Mar 2021, 8:47 AM
Gordon
Gordon - avatar
+ 2
i give the input "25 ~ 2" but the output "1", it supposed to be "5" sum = pow (a, 1/b);
31st Mar 2021, 8:56 AM
CPPlus
31st Mar 2021, 8:57 AM
Gordon
Gordon - avatar
+ 2
Convert it into decimal first c = 1 / b; sum = pow(a, c);
31st Mar 2021, 8:58 AM
Gordon
Gordon - avatar
+ 1
oh, ok ty
31st Mar 2021, 9:00 AM
CPPlus