•  
      tasks #43026 Python Program to check Armstrong Number
    #43026
    Ritish Singh (ritish31)
    2022-07-29 09:55
    2022-07-29 09:55
    Details
    Python Program to check Armstrong Number
    We need to calculate the sum of the cube of each digit. So, we initialize the sum to 0 and obtain each digit number by using the modulus operator %. The remainder of a number when it is divided by 10 is the last digit of that number. We take the cubes using exponent operator.
    Finally, we compare the sum with the original number and conclude that it is Armstrong number if they are equal.

    5 - Medium
    State of Progress
    2022-05-02
    100
    2022-05-03
    Ritish Singh (ritish31)
    Rakesh Kumar Verma (rakesh.verma)
    2022-05-03
    Closed
    Attachments
    References
    References list is empty