Wednesday, April 25, 2018

Armstrong number

An Armstrong number of three digits is an integer such that the sum of the cubes of its digits is equal to the number itself. For example, 371 is an Armstrong number since 3**3 + 7**3 + 1**3 = 371.

Code:


Output

1 comment:

  1. thank you for sharing nice article
    visit
    web programming tutorial
    welookups

    ReplyDelete