Created
February 6, 2025 19:04
-
-
Save JoelPerea5j/ff22f5beaa4e55eb96243301ff7c2c5d to your computer and use it in GitHub Desktop.
Funcion repetir
This file contains 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
// Parametros opcionales Posicionales | |
void Saludar(String nombre, [String? mensaje]) { | |
print ("Hola $nombre, ${mensaje ?? ""}"); | |
} | |
//Parametros Opcionales Nombrados | |
void mostrarInfo({String? nombre, int? edad}){ | |
print("Nombre: $nombre, Edad: $edad"); | |
} | |
void main(){ | |
print("Joel Perea 22308051281272"); | |
Saludar("Joel Perea","¿Como Estas?"); | |
mostrarInfo(nombre:"Joel",edad:17); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Salida