/// Name: Lacey Reese /// Period: 5 /// Program Name: XsAndYs /// File Name: XsAndYs.java /// Date Finished 2/8/2016 public class XsAndYs { public static void main( String[] args ) { double x, y; x = -10; System.out.println( " x\ty" ); System.out.println( "---------------" ); for ( x = -10; x <= 10; x = x + 0.5 ) { y = x * x; System.out.println( x + "\t" + y ); } System.out.println(); } }Picture of the output
//