PART A: Java

class Squares {
   static public void main(String argv[]) {
      for (int n = 0; n < 20; n++)
          System.out.println(n + 
                " squared is " + n*n);
   }
}


Slide 1 ©Copyright 1997 Jan Newmarch