You have to check if the currentDigit
is even, not n
.
if(currentDigit % 2 == 0)
solved 14 – Project Euler – Java – Incorrect Answer – Bug?
You have to check if the currentDigit
is even, not n
.
if(currentDigit % 2 == 0)
solved 14 – Project Euler – Java – Incorrect Answer – Bug?