Question
better way
which is a better way (smaller) to write this:
if (p1 == 1) {res1 = "RIGHT";}
else {res1 = "WRONG";}
if (p2 == 1) {res2 = "RIGHT";}
else {res2 = "WRONG";}
...
(this will repeat till p10==1)
thanks
if (p1 == 1) {res1 = "RIGHT";}
else {res1 = "WRONG";}
if (p2 == 1) {res2 = "RIGHT";}
else {res2 = "WRONG";}
...
(this will repeat till p10==1)
thanks