Error message here!

Hide Error message here!

忘记密码?

Error message here!

请输入正确邮箱

Hide Error message here!

密码丢失?请输入您的电子邮件地址。您将收到一个重设密码链接。

Error message here!

返回登录

Close

C + + problem, nested loop, enter n, find the diamond of operation

CSDN Q & A 2022-01-15 04:45:16 阅读数:8 评论数:0 点赞数:0 收藏数:0

problem : Input n, Output side length is n Asterisk diamond . The top grid in the middle row , There is a space between the asterisks , See the example effect
sample input 3
sample output
*
***
*****
***
*




Refer to the answer 1:

Is this example right ?




Refer to the answer 2:
Copyright statement
In this paper,the author:[CSDN Q & A],Reprint please bring the original link, thank you

编程之旅,人生之路,不止于编程,还有诗和远方。
阅代码原理,看框架知识,学企业实践;
赏诗词,读日记,踏人生之路,观世界之行;

支付宝红包,每日可领