#include <stdio.h>
#include <stdlib.h>
int main() {
    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;
            putchar(a * a * a - x * x * y * y * y <= 0.0f ? ‘*‘ : ‘ ‘);
        }
        putchar(‘\n‘);
    }
    return 0;
}
原文:http://www.cnblogs.com/wby1211/p/5540914.html