Created
February 6, 2025 18:20
-
-
Save floresstd/31b13febc0c119c4811632576ac66e7d 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
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("Jesus Flores 223080512811186"); | |
//llamar a la funcion 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/179508202/410588849-cbf5c25a-93ff-4691-8d4a-f54393aa1345.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMTQyNjEsIm5iZiI6MTczOTMxMzk2MSwicGF0aCI6Ii8xNzk1MDgyMDIvNDEwNTg4ODQ5LWNiZjVjMjVhLTkzZmYtNDY5MS04ZDRhLWY1NDM5M2FhMTM0NS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQyMjQ2MDFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iM2MzNzE5MWQzOTI2NjYyZmQwYTY0ZGU4OTYwNjZjZTVmOWE4NjhmNDYxNTRlMDIyY2EwNjk2Mzc5N2ZjNzk3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.vnTM19EgHmlRR2MV-lfQDVx3p1u7rznVmlJuDmkIiII)