//
int x = 3, y = 5;
if ( x >= 0)
if ( y < x ) 
System.out.println("y es menor que x"); 
else System.out.println("x es negativo"); 
// int x = 7;
if ( x = 0)
System.out.println("x es cero"); 
// int x = 15, y = 24;
if ( x % 2 == 0 && y % 2 == 0 );
System.out.println("x e y son pares"); 
0 comentarios:
Publicar un comentario