//********************************************************************
//  Geometry.java       Author: Lewis/Loftus
//
//  Demonstrates the use of an assignment statement to change the
//  value stored in a variable.
//********************************************************************

public class Geometry
{
   //-----------------------------------------------------------------
   //  Prints the number of sides of several geometric shapes.
   //-----------------------------------------------------------------
   public static void main (String[] args)
   {
 /*  	
   	 int XYZ = 7;
   	System.out.println (XYZ);
   	XYZ = 77;
 */  	
 	
 	int x, y, z;
 	x = 7;
 	y=x;
 	x = x+y + 3;
// 	System.out.println("x="+x+" y="+y);
 	
 //	x=y=z=55;
 
 x=55=y;
 
 	System.out.println("x="+x+" y="+y+ " z="+z);
   	
 /*  	
      int sides = 7;  sides = 5; ; // declaration with initialization
      System.out.println ("A heptagon has " + sides + " sides.");

      sides = 10;  // assignment statement
      System.out.println ("A decagon has " + sides + " sides.");

      sides = 12;
      System.out.println ("A dodecagon has " + sides + " sides.");
  */
   }
   
}
