March 23, 2017

Post a New Question

Posted by on Friday, January 13, 2012 at 9:19am.


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.

Please help..i don't know how to input this in java...please help.tnx

  • JAVA PROGRAMMING - , Tuesday, September 15, 2015 at 9:43pm

    import java.util.Scanner;

    public class BaseAndExponent {

    public static void main(String[] args)

    int a;
    int b;
    Scanner scan = new Scanner(;

Answer This Question

First Name:
School Subject:

Related Questions

More Related Questions

Post a New Question