Created
February 6, 2025 18:20
-
-
Save Miguel-Dmz/16facd42fd76b7d392e2ef6a1ae59643 to your computer and use it in GitHub Desktop.
función saludar( ) mas función 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 devuelve valor, | |
//pero ejecuta las instrucciones | |
void saludar (){ | |
print("Buenos dias"); | |
} | |
void suma(){ | |
int n1=2; | |
int n2=7; | |
int s=n1+n2; | |
print("la suma de $n1 + $n2 es $s "); | |
} | |
void main() { | |
print("Miguel Dominguez 1173"); | |
// llama a la fumcion saludar | |
saludar(); | |
// llama 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( )
![image](https://private-user-images.githubusercontent.com/179508759/410588807-13c5e29e-68e3-4f4d-882d-35f96585846a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMTQyMjksIm5iZiI6MTczOTMxMzkyOSwicGF0aCI6Ii8xNzk1MDg3NTkvNDEwNTg4ODA3LTEzYzVlMjllLTY4ZTMtNGY0ZC04ODJkLTM1Zjk2NTg1ODQ2YS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQyMjQ1MjlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01OWY3ZjNlMzVlZmFlMDM2ZjQ4MzAyMTc1MTcxOGVkNmY4OWIwZWQ4ZjAxMmNkN2RmNWMzZDEzNTM3OTkzNGQ4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.LmcyVCXxJpBms85DZ21z_kg3V1XlQbq0vAGNPKCU_Bc)