Skip to content

Instantly share code, notes, and snippets.

@DDOrozco17
Created February 12, 2024 16:56
Show Gist options
  • Save DDOrozco17/6ffb84f02d680a36988a00450fd2009f to your computer and use it in GitHub Desktop.
Save DDOrozco17/6ffb84f02d680a36988a00450fd2009f to your computer and use it in GitHub Desktop.
Usando funciones
// writing function outside main function.
void escribeN(){
print("Mi nombre es Diego Diaz.");
}// fin de funcion escribeN
void nombrepara(String n){
print("Tu nombre es $n");
}//fin funcion nombrepara(String n)
void nombreC(String ap, String n){
print ("Apellido Paterno $ap");
print ("Nombre $n");
}
void main(){
escribeN();
nombrepara("Diego");
String apellido="Diaz";
String nombre="Diego";
nombreC(apellido, nombre);
}
@DDOrozco17
Copy link
Author

image

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