#include <stdio.h>
#include <conio.h>
int main(void)
{
float a;
for (float y = 1.5f; -1.5f < y; y -= 0.1f) {
for (float x = -1.5f; 1.5f > x; x += 0.05f) {
a = x * x + y * y - 1.0f;
putchar(a * a * a - x * x * y * y * y < 0.0f ? '*' : ' ');
}
_sleep(100);
putchar('\n');
}
_getch();
return 0;
}
|