Lines Matching defs:right
185 * selected such that the right operand and either the left operand (for +, x)
195 int left, op, right, result;
198 right = left = result = 0;
201 right = getrandom(rangemax + 1, op, 1);
207 result = left + right;
211 left = right + result;
215 result = left * right;
218 right = getrandom(rangemax, op, 1) + 1;
220 left = right * result + random() % right;
231 (void)printf("%d %c %d = ", left, op, right);
250 (void)printf("Right!\n");
257 penalise(right, op, 1);
278 * a wrong answer was given. The right operand and either the left operand