/** 8/29/2018
  * This program introduces variables and literals
  * type int
  * whole numbers (including negative and zero)
  * don't put in commas or $, just use digits
  * type double allows you to store a number with a decimal point
  * example: 1.2
  */

public class Variables
{  
  public static void main(String[]  args) {
   int a, b, c;  // declares three vars of type int
   a = 15;
   b = a;
   // 25 = b; this is a compiler error 
   a = 2200;
   System.out.println("a=" + a + " b=" + b); 
   
   int x=100, y=x; // can give a value to a variable when you declare it.
              // this is called INITIALIZATION
   System.out.println("x=" + x + " y=" + y); 
   
   double d=5.675;
   System.out.println("d=" + d);
 }
} 
/** Lab 1: Write a program that declares at least 5 variables. Use types
  * int and double.
  * Your program should have at least 10 statements. Use assignment and println
  * to give values to variables and display them to the screen.
  */