发布网友 发布时间:2024-01-11 19:28
共1个回答
热心网友 时间:2024-01-21 12:18
public class Test{
public static void main(String[] args){
int len = 5;
int i=0,j;
while(i++<len){
j=0;
while(j++<i-1)System.out.print('-');
j=i;
while(j++<len+1)System.out.print('*');
System.out.println();
}}}