C Programs / Armstrong Number C program

Program Name

Write a C Program for Armstrong Number C program.
Theory
Armstrong Number is a number that is equal to the sum of cubes of its digits.

Example:
Take a Number 153.

Calculations
1*1*1=1
5*5*5=125
3*3*3=27
1+125+27=153

So 153 is Armstrong Number
Program Code


Input
Enter a number153
Output
Given Number is Armstrong number 
Online C Compiler (To copy paste and Run the c program)


Home     Back