#include<stdio.h>intmain(void){floata,x,y;for(y=1.5f;y>-1.5f;y-=0.1f){for(x=-1.5f;x<1.5f;x+=0.05f){a=x*x+y*y-1;//這里的@符號即為打印出的心形圖案符號,可更改charch=a*a*a-x*x*y*y*y<=0.0f?'@':'';putchar(ch);//或者putchar(a*a*a-x*x*y*y*y<=0.0f?'*':'');}printf("\n");}return0;}
網站導航
- zblogPHP模板zbpkf
- zblog免費模板zblogfree
- zblog模板學習zblogxuexi
- zblogPHP仿站zbpfang