Java - 5. Comprobación de condiciones - no es igual

PHOTO EMBED

Thu Sep 23 2021 01:01:38 GMT+0000 (UTC)

Saved by @drack669 #java

class If4 {
 
    public static void main( String args[] ) {
 
        int x = 10;
 
        if (x != 5) {
            System.out.println( "x no vale 5" );
        }
        else {
            System.out.println( "x vale 5" );
        }
    }
}
content_copyCOPY

No es igual

https://aprendeaprogramar.com/cursos/verApartado.php?id