Imprime valores de x, y & z
import java.io.*;
public class ValoresXYZ2
{
public static void main(String args[])
{
double x, y, z;
System.out.println("\nIMPRIME VALORES DE X Y Z\n");
System.out.println(" VALORES DE X Y Z");
System.out.println(" X Y Z");
System.out.println("----------------------");
x = 0;
do
{
x = x + 0.5;
y = 3 * Math.pow(x,2) + 7 * x - 15;
z = y - 2 * Math.pow(x,2);
System.out.println(x + " " + y + " " + z);
} while (x < 10);
}
}