used ternary
added a comment to the result
complete wacky calculator