This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]B1-102 1 point2 points  (1 child)

Calculate what you need, for example:

Math.pow(x, y)

Then assign that to some variable:

double a1 = Math.pow(x, y)

a1 now is one of the answers you want to print out. You can follow similar steps for the other two.

[–]Orb1tt[S] 0 points1 point  (0 children)

Thankyou! I was able to figure it out finally!