魏老四OJ
Home
ProblemSet
Source/Category
Contest
题单
Status
Ranklist
F.A.Qs
Login
1071: 【入门】字符图形7-星号菱形
Memory Limit:16 MB
Time Limit:1.000 S
:
Creator:
Submit:4
Solved:4
Submit
Statistics
Description
输入一个整数打印字符图形
Input
一个整数(0<N<10)
Output
一个字符图形,如输入2,则产生5行的菱形:
□□×
□×××
×××××
□×××
□□×
Sample Input
2
Sample Output
* *** ***** *** *
Source/Category
嵌套循环
Submit
Statistics