Assignemnt #83 Xs and Ys

Code

    ///Name: Prooz Fereydouni
    ///Period: 7
    ///Project Name: Xs and Ys
    ///File Name: XaY.java
    ///Date: 3/2/2016
  
public class XaY
{
    public static void main( String[] args)
    {
        double y;
        System.out.println(" x      y");
        System.out.println("-----------------");
        for(double x= -10; x <= 10 ; x=x+.5)
        {
            y=x*x;
            System.out.print(x + "  ");
            System.out.println(y);
            
        }
    }
}


    

Picture of the output

assignment83