import java.util.Scanner;
public class su苏琳琳 {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner input = new Scanner(System.in);
for (int i = 1; i <= 4; i++) {
for (int k = 1; k <= i * 2 - 1; k++) {
System.out.print("*");
}
System.out.print("\n");
}
for (int i = 3; i > 0; i--) {
for (int l = 2 * i - 1; l > 0; l--) {
System.out.print("*");
}
System.out.print("\n");
}
}
}
打印图形
最新推荐文章于 2023-12-02 17:40:24 发布