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