Skip to content

Instantly share code, notes, and snippets.

@Uribe00
Created February 6, 2025 18:20
Show Gist options
  • Save Uribe00/66c85d59034e58ec7b16fc63306e4f86 to your computer and use it in GitHub Desktop.
Save Uribe00/66c85d59034e58ec7b16fc63306e4f86 to your computer and use it in GitHub Desktop.
Funcion saludar() mas funcion suma ()
//funciones basicas que no devuelven valor,
//pero ejecuta las instrucciones entre llaves
void saludar(){
print("Buenos Dias");
}
void suma(){
int n1=2;
int n2=5;
int s =n1 + n2;
print ("La suma de $n1 y $n2 es $s");
}
void main()
{
print (" Daniel Uribe 22308051281323");
//llamar a la funcion saludar()
saludar();
//llama a la funcion suma
suma();
}
@Uribe00
Copy link
Author

Uribe00 commented Feb 6, 2025

Funcion suma()
image

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