实心金字塔
package com.test;
import java.util.Scanner;
public class Test {
public static void main(String[] args) {
/*
* 1行 1个*
*** 2行 3个*
***** 3行 5个*
******* 4行 7个*
********* 5行 9个*
每行*数 = 行数*2 - 1
*/
Scanner sc = new Scanner(System.in);
System.out.println("输入一个整数 打印实心金字塔");
int tier = sc.nextInt(); //行数
for (