/// Name: DeeJay Cerezo /// Period: 7 /// Program Name: ForEx /// File Name: ForEx.java /// Date Finished: 2/26/2016 import java.util.Scanner; public class ForEx { public static void main( String[] args ) { Scanner keyboard = new Scanner(System.in); System.out.println( "x y" ); System.out.print( "----------------" ); for ( double x = -10 ; x <= 10 ; x = x + .5 ) { double y = x * x; System.out.println( x + " " + y ); } } }Picture of the output
![]()