learned some new cout tricks with ternary operation, plus 1 more problem completed