【爱⼼】JAVA表⽩代码——属于程序员的浪漫Falling in love with you is the easiest thing I've ever done, nothing is more important than you!
⼩⼩的撒⼀波狗粮,废话不多说,直接上代码:
public class xin {
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;
if ((a*a*a-x*x*y*y*y)<0.0f){
System.out.print("*");
}else {
System.out.print(" ");
}
}java爱心代码编程简单
System.out.print("\n");
}
}
}
效果图:
有兴趣的朋友可以去试⼀试
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论