Created with <3 with dartpad.dev.
Last active
October 25, 2023 02:05
-
-
Save DeveloperFlutter2023/b26e121d51aaea67821d6363c41f2940 to your computer and use it in GitHub Desktop.
Tarea N° 02 - Ejercicio N° 9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok, los mismos consejos de antes.
La variable
mensaje
es innecesaria.