package Day;
//练习 等腰三角形
public class Day2 {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
for(int x=0;x<5;x++){
for(int y=x;y<5;y++){
System.out.print("-");
}
for(int z=0;z<=x;z++){
System.out.print("*");
}
System.out.println();
}
}
}
// —–*
// —-**
// —*
// –**
// -* 结果如此