官术网_书友最值得收藏!

  • The Modern C# Challenge
  • Rod Stephens
  • 62字
  • 2021-08-13 15:23:54

19. Armstrong numbers

A number is an Armstrong number if raising its digits to the power of the number of digits and adding the results give the original number. For example, 371 is an Armstrong number because it has three digits and 33 + 73 + 13 = 371.

Write a program that finds Armstrong numbers between 1 and a specified maximum.

主站蜘蛛池模板: 衡水市| 易门县| 台安县| 安阳县| 长兴县| 伽师县| 绥江县| 台前县| 文安县| 茌平县| 徐州市| 华阴市| 丹阳市| 内江市| 伊金霍洛旗| 巩留县| 衡阳县| 三原县| 怀来县| 横峰县| 城口县| 贵德县| 富锦市| 古田县| 南和县| 乌兰察布市| 饶河县| 衡东县| 鹤壁市| 克东县| 融水| 锡林浩特市| 吕梁市| 安平县| 略阳县| 措美县| 玛多县| 延津县| 得荣县| 连平县| 大同市|