Skip to content

Instantly share code, notes, and snippets.

@DeveloperFlutter2023
Last active October 25, 2023 02:05
Show Gist options
  • Save DeveloperFlutter2023/b26e121d51aaea67821d6363c41f2940 to your computer and use it in GitHub Desktop.
Save DeveloperFlutter2023/b26e121d51aaea67821d6363c41f2940 to your computer and use it in GitHub Desktop.
Tarea N° 02 - Ejercicio N° 9

Tarea N° 02 - Ejercicio N° 9

Created with <3 with dartpad.dev.

void main() {
String mensaje = "";
int numero = 16000;
int valorObjetivo = 12000;
if(numero > valorObjetivo){
mensaje = "El numero $numero es mayor que valorObjetivo $valorObjetivo.";
}else if(numero < valorObjetivo){
mensaje = "El numero $numero es menor que valorObjetivo $valorObjetivo.";
}else if (numero == valorObjetivo){
mensaje = "El numero $numero numero es igual a valorObjetivo $valorObjetivo.";
}
print(mensaje);
}
@leonus96
Copy link

Ok, los mismos consejos de antes.

La variable mensaje es innecesaria.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment