[java]代码库
public class Love{
public static void main(String[] args){
System.out.println("Hello");
for(int i=1;i<=10;i++){
//L
for(int j=1;j<=3;j++){
System.out.print("*");
}
if(i==9||i==10){
System.out.print("*********");
}
if(i==9||i==10){
System.out.print("\t");
}else{
System.out.print("\t\t");
}
//o
for(int a=1;a<=3;a++){
System.out.print("*");
}
if(i==9||i==10){
System.out.print("*********");
}else if(i<=8&&i>=3){
System.out.print(" ***");
}else if(i<=2){
System.out.print("*********");
}
System.out.print("\t");
//v1
for(int b=2;b<=(i+1)/2;b++){
//if(b=1){break;}
System.out.print(" ");
}
for(int a=1;a<=3;a++){
System.out.print("*");
}
for(int b=1;b<=(10-i)/2;b++){
System.out.print(" ");
}
//v2
for(int b=1;b<=(10-i)/2;b++){
System.out.print(" ");
}
for(int a=1;a<=3;a++){
System.out.print("*");
}
for(int b=2;b<=(i+1)/2;b++){
//if(b=1){break;}
System.out.print(" ");
}
//E
System.out.print("\t ");
if((i+1)/2==1||(i+1)/2==3||(i+1)/2==5){
for(int a=1;a<=12;a++){
System.out.print("*");
}
}else{
for(int a=1;a<=3;a++){
System.out.print("*");
}
}
System.out.println();
}
}
}
初级程序员
by: 人生恍如初梦 发表于:2016-07-18 21:17:43 顶(3) | 踩(2) 回复
傻傻的韩小乐
回复评论