Assignment # 83 and X's and Y's

Code

    /// Name: Tommy Oyuntseren
    /// Period: 7
    /// Program Name: XandY
    /// File Name: XandY.java
    /// Date: 2/18/2016

public class XandY
{
    public static void main(String[] args)
    {
        Double x, y;
        
        System.out.println(" x\ty\n-------------");
        
        for (x=-10.0; x<=10; x=x+0.5)
        {
            System.out.print(" "+ x +"\t");
            
            y=x*x;
            System.out.println(y);
        }
    }
}
   
   

  

Picture of the output

Assignment 83