Friday, September 1, 2017

Chapter One Exercise Four

//Print a table
public class Exercise104{
   public static void main(String [] args){

      System.out.println("a     a^2    a^3");
      System.out.println("1     1      1");
      System.out.println("2     4      8");
      System.out.println("3     9      27");
      System.out.println("4     16    64");
   }
}  

No comments:

Post a Comment