Asked by Java
"POWERS"
Compute the power of a number given the base and exponent. Do three versions of this
program using a while loop, a do-while loop and a for-loop.
Introduction
Please help..i don't know how to input this in java...please help.tnx
Compute the power of a number given the base and exponent. Do three versions of this
program using a while loop, a do-while loop and a for-loop.
Introduction
Please help..i don't know how to input this in java...please help.tnx
Answers
Answered by
jade
import java.util.Scanner;
public class BaseAndExponent {
public static void main(String[] args)
{
int a;
int b;
Scanner scan = new Scanner(System.in);
System.out.println("Base");
}
}
public class BaseAndExponent {
public static void main(String[] args)
{
int a;
int b;
Scanner scan = new Scanner(System.in);
System.out.println("Base");
}
}
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.