Skip to content

Instantly share code, notes, and snippets.

@SergioDelgado098
Created February 6, 2025 18:20
Show Gist options
  • Save SergioDelgado098/d17abf732fc55b096ccbe5b3162bb7a6 to your computer and use it in GitHub Desktop.
Save SergioDelgado098/d17abf732fc55b096ccbe5b3162bb7a6 to your computer and use it in GitHub Desktop.
Funcion saludar( ) mas funcion suma( )
// Funciones basicas que no devuelva 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 + $n2 es: $s");
}
void main () {
print (" Sergio Gael Delgado Valle 22308051281169");
// Llamar a la funcion saludar
saludar ();
//Llamar a la funcion suma
suma();
}
@SergioDelgado098
Copy link
Author

funcion suma ( )

image

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