import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); while(sc.hasNext()){ int n=sc.nextInt(); if(n==0) break; for (int i = 0; i <=n*2; i++) { if(i==n) { for (int j =0; j <=n; j++) System.out.print("*"); System.out.println("*"); } else{ System.out.print("*"); for (int j = 1; j <=n; j++) System.out.print(" "); System.out.println("*"); } } System.out.println(); } } }
0.0分
0 人评分
C语言程序设计教程(第三版)课后习题6.7 (C语言代码)浏览:815 |
字符串的输入输出处理 (C语言代码)浏览:2122 |
指针做法浏览:901 |
字符串输入输出函数 (C++代码)(都当成字符串吧hhhhhhhh)浏览:493 |
2004年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码)浏览:470 |
2004年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码)浏览:1352 |
哥德巴赫曾猜测 (C语言代码)浏览:2369 |
小九九 (C语言描述,不看要求真坑爹)浏览:986 |
C二级辅导-统计字符 (C语言代码)浏览:485 |
拆分位数 (C语言代码)浏览:523 |