0

what armstrong number?

armstrong logic in c++

14th Dec 2016, 8:14 PM
Abrar Hussain
Abrar Hussain - avatar
3 Respuestas
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.
14th Dec 2016, 8:18 PM
Exception Handler
Exception Handler - avatar
0
yeah thats right! so how to fix it in a code this typical logic!
14th Dec 2016, 8:28 PM
Abrar Hussain
Abrar Hussain - avatar
- 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 % .
14th Dec 2016, 8:33 PM
Morpheus
Morpheus - avatar