Hi my code seems to jumps all the if statment and keep only the 4th one. Seems because my condition exist only in the curly brackets but dont know how to fix if
int score1, score2, score3, score4, score5, score;
if (firstQ == 1) {
score1 = 2;
} else if (firstQ == 2) {
score1 = 4;
} else if (firstQ == 3) {
score1 = 1;
} else if (firstQ == 4) {
score1 = 3;
if (secQ == 1) {
score2 = 4;
} else if (secQ == 2) {
score2 = 2;
} else if (secQ == 3) {
score2 = 3;
} else if (secQ == 4) {
score2 = 1;
...
Aucun commentaire:
Enregistrer un commentaire