打印阿姆斯壮数字 [英] Print Armstrong Numbers

查看:71
本文介绍了打印阿姆斯壮数字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


如何打印阿姆斯壮数字1到99999999999

Hi
How to print Armstrong Numbers 1 To 99999999999

推荐答案

如果您要张贴作业,至少要使其看起来像是您自己尝试做某事!

我们不做您的作业:这是有原因的.在这里,您可以考虑自己被告知的内容,并尝试理解它.也可以在那里帮助您的导师识别您的弱点,并将更多的注意力放在补救措施上.

自己尝试,或学习魔语:您想要用它炸薯条吗?"

我建议您从Google开始: http://www .google.co.uk/search?sourceid = chrome& ie = UTF-8& q = Print + Armstrong + Numbers [
If you are going to post your homework, at least try to make it look like you have attempted to do something yourself!

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, or learn the Magic Words: "Do you want fries with that?"

I suggest you start with Google: http://www.google.co.uk/search?sourceid=chrome&ie=UTF-8&q=Print+Armstrong+Numbers[^]


进行循环从199999999999,并测试该数字是否为Armstrong的数字.如何?我不会告诉你,那只会是破坏者.
Make a loop from 1 to 99999999999 and test if the number is an Armstrong''s one. How? I won''t tell you, it would be just spoiler.


求解阿姆斯壮数确实很有趣,但是您需要有关如何求解的概念.
我建议您使用以下一种:
http://illuminations.nctm.org/LessonDetail.aspx?id=L648

尝试使用普通循环解决它,然后进行递归.每当遇到障碍时,您始终可以在此处发布解决方案:)
solving armstrong number is really fun but you need the concept on how to solve it.
I suggest you use this one: http://illuminations.nctm.org/LessonDetail.aspx?id=L648

try solve it with ordinary looping then proceed with recursive. You can always post your solution here whenever you encountered roadblocks along the way :)


这篇关于打印阿姆斯壮数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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