Computer Science, asked by patelmanav0801, 4 months ago

. p = mn + 2xy +5 java equation​

Answers

Answered by Mister360
2

Explanation:

public class Power {

public static void main(String[] args) {

int base = 3, exponent = 4;

long result = 1;

while (exponent != 0)

{

result *= base;

--exponent;

}

System.out.println("Answer = " + result);

}

}

Similar questions