/*
Create a program that will compute the power of a number given the base
and exponent. Do this program using a for loop.
programmed by: eugene
spec fr: JEDI – PROGRAMMING LANGUAGE 1
*/
import javax.swing.*;
class powers
{
public static void main(String args[])
{
int base = Integer.parseInt(JOptionPane.showInputDialog(“ENTER BASE:”));
int power = Integer.parseInt(JOptionPane.showInputDialog(“ENTER EXPONENT:”));
int result=1;
for(int x=1; x