图案印刷在.... [英] Pattern printing in c....

查看:82
本文介绍了图案印刷在....的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

想要代码在2到4个循环中打印模式......

模式..在c编程中..





1

2 3

4 5 6

7 8

9





*

* *

* * *

* *

*

Want code to print patterns in 2 to 4 loops......
patterns.. in c programming..


1
2 3
4 5 6
7 8
9


*
* *
* * *
* *
*

推荐答案

我们不做你的功课:这是有原因的。它就是为了让你思考你被告知的事情,并试着理解它。它也在那里,以便您的导师可以识别您身体虚弱的区域,并将更多的注意力集中在补救措施上。



亲自尝试,你可能会发现它不是和你想的一样困难!



这真的不难 - 只需在一张纸上手动试试,找出你要做的事......然后把它翻译成C.用星号开头,因为它没什么可考虑的,并尝试只做一半的模式:

We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!

This really isn't difficult - just try it manually on a piece of paper, and work out what you have to do...then translate that to C. Start with the asterisks, because it's less to think about, and try to do just half the pattern:
*
**
***

当你完成这项工作后,剩下的就应该落实到位。

When you have got that working, the rest should just fall into place.


这篇关于图案印刷在....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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