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