mirror of
https://github.com/TheAlgorithms/C.git
synced 2026-02-04 05:44:35 +00:00
[PR #879] [CLOSED] Armstrong Number in C #1396
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/TheAlgorithms/C/pull/879
Author: @karantiet
Created: 10/10/2021
Status: ❌ Closed
Base:
master← Head:master📝 Commits (1)
e6b2b3bArmstrong Number in C📊 Changes
1 file changed (+25 additions, -0 deletions)
View changed files
➕
numerical_methods/Armstrong Number in C.c(+25 -0)📄 Description
It's A C Program To Check Armstrong Number.
Armstrong number is a number that is equal to the sum of cubes of its digits. For example 0, 1, 153, 370, 371 and 407 are the Armstrong numbers.
Let's try to understand why 153 is an Armstrong number.
153 = (111)+(555)+(333)
where:
(111)=1
(555)=125
(333)=27
So:
1+125+27=153
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.