I need to print all armstrong numbers ranging from 1 to 10000. My issue is that when my programme runs and hits 150, it does nothing.
(1^3) + ((6^3)-2) + (0^3)
as opposed to
(1^3) + (6^3) + (0^3)
As a result, it does not display 153 (an Armstrong number), because the total is 152. I'm not...