I was marked off 2 points from my teacher because he said this part of my code was redundant. What could I have done to make it less redundant?


if (x < 30) {
a=2;
x++;
...