我需要帮助找出我做错了什么。到目前为止,这是我的编码。我正在尝试在圆上绘制坐标。我收到一个非语句错误。
public class MathClass
{
public static void main (String [] args)
{
double y1;
double y2;
System.out.println("Points on a Circle of Radius 1.0");
System.out.printf ( "%6s" , "x1", "y1", "x1" , "y2");
System.out.println ("----------------------------------");
for (double x1 = 1.00; x1> -1.10; x1 + -0.10)
{
double x1sq= Math.pow(x1,2);
double r = 1;
double y1sq = r- x1sq;
y1= Math.sqrt(y1sq);
System.out.printf( "%.2f", x1, " ", y1);
}
}