public class UTSTesting {
public static void main(String[] args){
int bil = 0;
if((bil > 0) && (bil % 2 == 0)){
System.out.println("Genap Positif");
}else if((bil < 0) && (bil % 2 == 0)){
System.out.println("Genap Negatif");
}else if((bil > 0) && (bil %2 == 0)){
System.out.println("Ganjil Positif");
}else((bil < 0) && (bil %2 == )){ /// this where the error show up///
System.out.println("Ganjil Negatif");
}
}
}
I try to add ';', but still can't figure out where to put it. help me, please:)
Aucun commentaire:
Enregistrer un commentaire