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

diamond

时间限制: 3s 内存限制: 192MB 提交: 137 解决: 88

题目描述

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教程单片机教程

视频教学见视频网课

标签