import java.util.Scanner; public class XandY { public static void main( String[] args ) { Scanner keyboard = new Scanner(System.in); double x, y; System.out.println( " x Y " ); for ( x = -10 ; x <=10 ; x = x+.5 ) { System.out.println ( x + " " + ( y=x*x)); } } }