class Demo {
public static void main(String[] args) {
for (float y = 1.5f; y > -1.5f; y -= 0.1f) {
for (float x = -1.5f; x < 1.5f; x += 0.05f) {
float a = x * x + y * y - 1;
System.out.print(a * a * a - x * x * y * y * y <= 0.0f ? '*' : ' ');
}
System.out.print('\n');
}
}
}
|
|