Created
February 6, 2025 18:20
-
-
Save AlexisJimenez14/8c4c397cde1fdca2f1f15de8dc2efc7c to your computer and use it in GitHub Desktop.
funcion saludar() mas funcion suma()
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
//funciones basicas que no devuelven el valor, pero ejecuta las instrucciones | |
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(" Alexis Fabian Jimenez 22308051281213"); | |
//llama a la funcion saludar | |
saludar(); | |
//llamar a la funcion suma | |
suma(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
funcion suma()