package 对阳子心动;
public class aixindaima {
public static void main(String[] args) throws InterruptedException {
int count = 0;
for (float y = 2.5f; y > -2.0f; y -= 0.12f) {
for (float x=-2.3f;x<2.3f;x+=0.041f){
float a = x*x+y*y-4f;
if((a*a*a-x*x*y*y*y)<-0.0f){
String str ="I LOVE YOU";
int mun = count%str.length();
System.out.print(str.charAt(mun));
count++;
}else{
System.out.print(" ");
}
}
System.out.println();
Thread.sleep(100);
}
System.out.println("我不能发誓我会爱你多久");
System.out.println("只要我有心跳呼吸就会爱你依旧");
}
}
爱心循环java代码
最新推荐文章于 2025-03-04 16:01:17 发布