Write a JAVA program that will input the base and power and display the result:
Example:
Base is 4 Power is 2 the answer is 16 42 = 16
Base is 2 Power is 5 the answer is 32 25 = 32
Base is 0 Power is any no. the answer is 0 08 = 0
Base is any no. Power is 0 the answer is 1 70 = 1
Base is 0 Power is 0 the answer is “Indeterminate” 00 = “Indeterminate”

(Note: Math.pow( ) method is not allowed)

(using looping/iteration)

Why? Sounds boring to me.

Okay, finished.

commented: :) +36
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.