Created
February 6, 2025 18:46
-
-
Save GaelRogelioBejaranoD/2e351a6c23d77e778b5a3d57c233f05e 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
//Funciones basicas que nodevuelven el valor, pero ejecuta las instrucciones entre llaves | |
//Funcion flecha | |
int flecharesta(int a,int aa) => a - aa; | |
int resta(int a,int aa){ | |
return a - aa; | |
} | |
void main() { | |
print("Roger Bejarano 22308051281154"); | |
int x = 9; | |
int y = 3; | |
print("Funcion resta normal"); | |
int r = resta(x,y); | |
print("La resta entre $x y $y es igual a: $r"); | |
print("Funcion resta tipo flecha"); | |
int rr = flecharesta(12,10); | |
print("La flecharesta(12,10) es igual a: $rr"); | |
} |
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/179547624/410596420-93d345ac-a3e5-42a8-b34a-24f8c7bad618.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMTQyNjAsIm5iZiI6MTczOTMxMzk2MCwicGF0aCI6Ii8xNzk1NDc2MjQvNDEwNTk2NDIwLTkzZDM0NWFjLWEzZTUtNDJhOC1iMzRhLTI0ZjhjN2JhZDYxOC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQyMjQ2MDBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mNTI5MTBjNGEwODNmMjk4OWE4MTMyZjgzODBmZjlhNTBlN2Q1YmFkYTFhODZiOTBmYzQ3YTUyMTI1MDg5MWRjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.hYTBFh0DCtmbVzH-cF-JUlI_ynK36vHooiX1yaopdko)