It seems that I must do something wrong in the following condition to check that the three variables a
, b
and c
are non-zero using boolean expression :
int a = 2;
int b = 7;
int c = 11;
if(a!=0 && b!=0 && c!=0) {
System.out.print("Todos son distintos a cero")
}
as the partner says missing ";" after the System.out.print.
It would look like this: