**New course!**Every coder should learn

**Generative AI!**

0

# what armstrong number?

armstrong logic in c++

3 Answers

0

An Armstrong number of three digits is an integer such that the sum of the cubes of its digits is equal to the number itself. For example, 371 is an Armstrong number since 3**3 + 7**3 + 1**3 = 371.

0

yeah thats right! so how to fix it in a code
this typical logic!

- 1

I ve shared a code to check it , my code section Armstrong no
just check it sum of cube of digits by digit using modulus % .