Math.pow errors in Java

后端 未结 5 2030
天涯浪人
天涯浪人 2021-01-19 04:02

I am \'obviously\' just learning programming and I can\'t seem to figure out what to do in order to get rid if this error. The error is on the second to the last line - the

5条回答
  •  醉酒成梦
    2021-01-19 04:15

    Math.pow takes two arguments, in an expression x^y it takes first parameter x and second parameter y, but you're only passing single arguments. Where's your exponent?

提交回复
热议问题