[PR #879] [CLOSED] Armstrong Number in C #1396

Closed
opened 2026-01-29 15:20:07 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/TheAlgorithms/C/pull/879
Author: @karantiet
Created: 10/10/2021
Status: Closed

Base: masterHead: master


📝 Commits (1)

📊 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.

## 📋 Pull Request Information **Original PR:** https://github.com/TheAlgorithms/C/pull/879 **Author:** [@karantiet](https://github.com/karantiet) **Created:** 10/10/2021 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`e6b2b3b`](https://github.com/TheAlgorithms/C/commit/e6b2b3bf5f1dd07fdf837201fca268fb5913b45c) Armstrong Number in C ### 📊 Changes **1 file changed** (+25 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `numerical_methods/Armstrong Number in C.c` (+25 -0) </details> ### 📄 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 = (1*1*1)+(5*5*5)+(3*3*3) where: (1*1*1)=1 (5*5*5)=125 (3*3*3)=27 So: 1+125+27=153 <a href="https://gitpod.io/#https://github.com/TheAlgorithms/C/pull/879"><img src="https://gitpod.io/button/open-in-gitpod.svg"/></a> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 15:20:07 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#1396