import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
for(int i=a;i>=1;i--){
for(int j=1;j<=i;j++){
System.out.print("*");
if(i!=j){
System.out.print(" ");
}
}
System.out.println();
}
}
}
算法训练 图形显示
最新推荐文章于 2020-04-28 08:32:22 发布