This is the strangest thing I have in my entire C++ career. I am writing a program to find Armstrong numbers and the following code is a snippet from the program. It adds up individual digits of 153 to 152.
Cubbi, thanks for the reply. It outputs 125. I ran the same code on Ideone (the online compiler) and got the correct result. Something is not right with my Dev C++