Created
February 12, 2024 16:56
-
-
Save DDOrozco17/6ffb84f02d680a36988a00450fd2009f to your computer and use it in GitHub Desktop.
Usando funciones
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
// 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); | |
} |
Author
DDOrozco17
commented
Feb 12, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment