C Programming Question #32 | Check Armstrong Number in C

Опубликовано: 20 Май 2026
на канале: PR Codes
2
0

Welcome to the C Programming Question Series.

📌 Question:
Write a C program to check whether a number is an Armstrong number or not.

In this video, you will learn how to calculate the sum of powers of digits and compare it with the original number in C programming.

This is a very important question for exams and interviews.

💡 Topics covered:
• while loop in C
• Power calculation
• Sum of digits logic
• Conditional statements

📌 Example:
Input: 153
Output: Armstrong Number

(1³ + 5³ + 3³ = 153)

If you are learning C programming, this program will help you improve your logic building.

👍 Like, Share & Subscribe for more coding questions and C programming tutorials.

#CProgramming #ArmstrongNumber #CLanguage #CodingForBeginners