Ad Code

Write a program to check whether given number is armstrong number or not.

What is Armstrong Number??

The number which is equal to the sum of the cubes of the digits of the given number is known as armstrong number.

Let's take an example to understand

153 is a Armstrong number. but the question is how?

See...

(1)3=1

(5)3=125

(3)3=27

then the sum of the cubes will be

1+125+27=153

Now, the program to check whether the number is Armstrong or not.





Also read:- Program of factorial of the given number using recursion.

Post a Comment

0 Comments

Ad Code