Dotcpp  >  编程题库  >  diamond
题目 2189:

diamond

时间限制: 2s 内存限制: 192MB 提交: 145 解决: 93

题目描述

There was a girl whose name is Crystal, and she love diamond shape so much. One day, she learned how to use computer. Without hesitation, she ask you to write a program to draw diamond for her.

输入格式

a single number from the user n, where n is an odd number between 3 and 19

输出格式

a diamond that is n characters wide and high

样例输入

3

样例输出

 *
***
 *

提示

零基础同学可以先学习视频课程,包含C/C++、Python、百练、蓝桥杯辅导、算法数据结构等课程,提供视频讲解以及配套习题,还有老师答疑,点击这里了解课程详情
标签