PaterAlf: It wasn't aimed at you. You've been perfectly respectful indeed.
Oh, I know it wasn't, I just can't stop laughing at this entire thing. At least Regals was right about that much:
He DOES have me in tears, although I'm not sure it's for the reason he thinks.
System.out.println(((sum % 2) == 0) ? "even" : "odd");
System.out.println("The Sum of the digits is: " + sum);
dtgreene: Honestly, that code is too long for something as simple as hello world. Something like this would work:
print("even" if sum % 2 == 0 else "odd")
print("The sum of the digits is: ", sum)
(Actually, the first line could be even simpler:
print("odd" if sum else "even")
or even
print(["even", "odd"][sum % 2])
though an absolute beginner would probably not think of (or understand) either solution
)
This keeps getting better and better.
PaterAlf: tinyE's of course. Like everybody else. ;)
Wait, I thought we'd agreed that we were all Judas, Firek, and the other staff members?