a. How many 5-digit numbers exist where one of its digits equals the sum of all other digits?
b. What is the sum of all those numbers?
No leading zeroes.
(In reply to
corrected! by Steven Lord)
It is possible that you've corrected the program,
but you did not change the related line in your listing.