Created
February 6, 2025 18:46
-
-
Save aldosaucedo1213/d67323cb2ddeea0d13167e06f09154ba to your computer and use it in GitHub Desktop.
ejemplo de funcion flecha
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
// funsiones basicas que devuelva el valor, | |
// y ejecuta las instrucciones entre llaves | |
int resta(int a, int b){ | |
return a-b; | |
} | |
// funcion flecha | |
int flecharesta(int a, int b)=> a - b; | |
void main(){ | |
print ("aldo saucedo 22308051281310"); | |
int x = 9; | |
int y = 3; | |
print("funcion resta normal"); | |
int r=resta(x,y); | |
print("la resta de $x - $y es $r"); | |
print("funcion resta tipo flecha"); | |
int r1=flecharesta(12,2); | |
print("la resta de flecharesta(12,2) es $r1"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
salida el ejemplo flecha resta
![image](https://private-user-images.githubusercontent.com/179946771/410596539-17836cd1-a824-4b1d-8df9-ecc064efbd4f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMTQxMjIsIm5iZiI6MTczOTMxMzgyMiwicGF0aCI6Ii8xNzk5NDY3NzEvNDEwNTk2NTM5LTE3ODM2Y2QxLWE4MjQtNGIxZC04ZGY5LWVjYzA2NGVmYmQ0Zi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQyMjQzNDJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01ZWVlNzQxNGU4YWM3ZGYxNzNjZjA2OTdjYjJmNmNiNWM0MGE4MTE0YWQwZjIyM2EyNWZlNTJiMDI5ZTE5ZTQ4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.NujXBpl3H-jXImio9b25A3GK-V5F7kwK1pV1VRCl2f8)