EJEMPLO OPERADORES LOGICOS Y ARITMETICOS public class operadores { public static void main(String[] args){ //Variables boolean resultadoBool; int x, resultadoArit; //Operación Lógica resultadoBool = 5 >= 10 && (8 < 6 || 5 == 5); System.out.print("Resultado de la operacion 5 >= 10 && (8 < 6 || 5 == 5): "); System.out.println(resultadoBool); //Operación Aritmetica System.out.println("========================================="); System.out.println("f(x) = 2x + 4x^2 / 3x - 2 "); System.out.println("Donde x = 5"); //Operacion en java x = 5; resultadoArit = (2*x + 4*(x*x) / (3*x-2)); System.out.println("f(x) = " + resultadoArit); System.out.println("========================================="); } }