用于在菱形结构中打印*的Java程序 [英] java program for print * in diamond structure

查看:67
本文介绍了用于在菱形结构中打印*的Java程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


谁能帮我打印.


--*--
-* * *-
* * * * *
-* * *-
--*--

谢谢

Hi,
Could any one help me to print.


- - * - -
- * * * -
* * * * *
- * * * -
- - * - -

Thanks

推荐答案

如果我们帮助您解决这样一个琐碎的问题,您将失去自己独自完成工作所学的机会.我不会称其为帮助",而恰恰相反.您的学校让您有机会学到一些东西,以后会付出很多.好好利用这个机会.

-SA
If we help you to solve such a trivial problem, you will loose the chance to learn something by doing your job all by yourself. I would not call it "help", it would be rather something opposite. Your school gives you the chance to learn something with will pay of well later. Use this chance well.

—SA


请参阅解决方案1,网址为 ^ ].我知道这是C#代码,但它应该可以帮助您理解概念.
See Solution 1 at Star Patterns in One Line[^]. I know that is C# code but it should help you to understand the concept.


这篇关于用于在菱形结构中打印*的Java程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆