开发者

How to find Armstrong numbers in a given range? [closed]

开发者 https://www.devze.com 2022-12-07 18:08 出处:网络
Closed. This question needs debugging details. It is not currently accepting answers. 开发者_Python百科
Closed. This question needs debugging details. It is not currently accepting answers.
开发者_Python百科

Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.

Closed 2 hours ago.

Improve this question

I have been trying to find armstrong number in range 0 to 200 its showing some errors. for example 145 is a Armstrong number because its 1**3 + 4**3 + 5**3 = 145.


Firstly 145 is not a Armstrong number, and you can try to read this page for the code you looking for: https://www.javatpoint.com/armstrong-number-in-c

0

精彩评论

暂无评论...
验证码 换一张
取 消