/// Name: Afaf Nabeeha
/// Period: 7
/// Program Name: Xs and Ys
/// File Name: X.java
/// Date Finished: 12/20/2015 public class X
public class X
{
public static void main ( String[] args )
{
double x, y;
System.out.println( "X Y" ) ;
System.out.println( "________" ) ;
for ( x = -10; x <= 10; x = x + 0.5 )
{
y = x*x;
System.out.println( x + " " + y ) ;
}
}
}
Picture of the output