本文介绍了使用c或C ++的星形图案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用c或C ++获得以下模式
How i can get the following pattern using c or C++
* *
** **
* * * *
* * *
* * * *
** **
* *
这里的用户输入是行数,两端都应该有对角线。请帮帮我。
here the user input is the no of rows and there should be diagonals from both ends. Please help me.
推荐答案
这篇关于使用c或C ++的星形图案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!