Created
February 6, 2025 18:46
-
-
Save GabrielAlvrado89/10eeedb8d7a0068e2b25c09c982ae0e2 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 devuelve valor, | |
// pero ejecuta las instrucciones entre llaves | |
int resta(int a, int b){ | |
return a-b; | |
} | |
int flecharesta(int a, int b) => a-b; | |
void main(){ | |
print("Angel Alvarado 22308051281127"); | |
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 de flecha
![image](https://private-user-images.githubusercontent.com/179508503/410596645-2b2f8a54-8b2c-4719-81a7-e267d8cb35c5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMTQyNTUsIm5iZiI6MTczOTMxMzk1NSwicGF0aCI6Ii8xNzk1MDg1MDMvNDEwNTk2NjQ1LTJiMmY4YTU0LThiMmMtNDcxOS04MWE3LWUyNjdkOGNiMzVjNS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQyMjQ1NTVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jZDUxZTQ2NWE5MzEyZjUxMjNiNzlmZmI0YmU0ZWVmOGMyOGMwNGI0M2FiYzcwNTQwYWI3MGI0MWNiNDg0MTFiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.XG7p6qz9tmEuRZC06p_XomISJ189I6A784bqmaxwYyI)