当前位置:网站首页>Romance in C language

Romance in C language

2022-04-23 17:55:00 Chshyz

treasure , It's Chinese Valentine's day

Environmental Science : object 、centos7vim/vi The editor writes C Language
Just went shopping and met a beautiful love , Then I thought of you .
 Insert picture description here
Source code

#include <stdio.h>
#include <math.h>
#include <stdio.h>

int main()
{
    float y, x, z, f;
    for (y = 1.5f; y > -1.5f; y-=0.1f)
    {
        for (x = -1.5f; x < 1.5f; x += 0.05f)
        {
            z = x*x + y*y -1;
            f = z*z*z - x*x*y*y*y;
            putchar(f <= 0.0f ? "**-*-*-*"[(int)(f*-8.0f)]:' ');
        }
        putchar('\n');
    }

    getchar();
    return 0;
}

I just learned it, too C, I won't explain the code to you, hahaha .
PS: I wish the rich get married
 Insert picture description here

版权声明
本文为[Chshyz]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230547414139.html