CIS 757/790                                    PROF. AUCIELLO

import corejava.*;   
 class expo
  { public static void main (String args[])
      { int b,e,y;
        b = corejava.Console.readInt("Enter base:     ");
        e = corejava.Console.readInt("Enter exponent: ");
        for (y = 1;  y <= e;  y += 1)
        { System.out.print(b + " raised to " + y + " = ");
          Format.print(System.out,"%5.0f", Math.pow(b,y));
          System.out.println(" "); }
      }
  }

 1.  start off with a statement that links to the corejava libraries.
 2.  define the program internal name -- same as DOS name.
     keyword-access-modifier + container for program
 3.  statement containing 'main' method
 4.  define b,e,y as integers.
 5.  read  data from the console, name it 'b'.
 6.  input data from console,     name it 'e'.
 7.  start a loop from 0 to the value of 'e', auto-incrementing
     by 1.
 8.  inside that loop, print 1st part of line (no line feed)
 9.  use a method to determine exponentiated result, and
     format print it as 5 positions with 0 decimal places.
10.  Write a blank line with a line feed.  Advances to next line.