package ed u .learn;
public class Heart {
public static void main(String[] args) {
// T O DO Auto-generated method stub
for(float y = (float) 1.5;y>-1.5;y -=0.15) {
for(float x= (float) -1.5;x<1.5;x+= 0.05){
float a = xx+yy-1;
if((aaa-xxyyy)<=0.0) {
System.out.print(“*”);
}
else
System.out.print(" ");
}
System .out .print l n();
}
}
}
Java心
最新推荐文章于 2024-04-17 13:45:00 发布