by monkeyjoe · 3y ago · 0 comments
ones = number % 10
tens = number // 10
do_print = (ones + tens) == 10OP mentioned reading from a file, which you would only be able to use after string conversion to ints.
if toInt(number) % 10 != 0
print number
else print number + "(" + number[0] + "," + number[1] + ")"