Posts by Léo Campos • 1 point
1 post
-
0
votes0
answers19
viewsQ: Error when trying to use conditional structure equality in java
The code below is giving error in line if (sexo = 1){, can anyone explain to me why? int sexo = 0, sexoF = 0, sexoM = 0, bom = 0, ruim = 0; while (sexo != -1){ System.out.println("Digite o sexo: ");…