For starters, the line of code


output += "\n" + input1 + " % " + input2 + " = " + answer +
((input1 % input2 == answer) ? " correct" : " wrong");

is...