Created
February 6, 2025 18:45
-
-
Save Dulce-Maria-Tolentino-De-Anda/cf10558a33e5622e3f30e8e3a66b53e1 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 NO DEVUELVAN EL VALOR | |
//PERO EJECUTA LAS INSTRUCCIONES ENTRE LLAVEs | |
int resta (int a, int b){ | |
return a-b; | |
} | |
int flecharesta(int a, int b ) =>a-b; | |
//funcion flechas | |
void main() { | |
print ("DULCE MARIA TOLENTINO DE ANDA 22308051281367"); | |
int x= 9; | |
int y= 3; | |
print("funcion resta normal"); | |
int r=flecharesta(x,y); | |
print("la resta de $x - $y es $r "); | |
print("funcion resta tipo flecha"); | |
int r1=flecharesta(12,2); | |
print("la 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 flechas resta
![image](https://private-user-images.githubusercontent.com/179508929/410596534-8c202308-02a8-4ffd-818e-2cc0a09bc100.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMTQyNTIsIm5iZiI6MTczOTMxMzk1MiwicGF0aCI6Ii8xNzk1MDg5MjkvNDEwNTk2NTM0LThjMjAyMzA4LTAyYTgtNGZmZC04MThlLTJjYzBhMDliYzEwMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQyMjQ1NTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00NzQxOGRiMzllYzZmNDhlODA4Y2RjNTM4YWU1OWU5NGU4YjNmYjU3N2U2NDI4NGVmYzZlNmE0YWQyOTYyMmI0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Ts-K0bPVeT9zsfBvsnIUmUaxbsLKwBbQ3nmIqhDPUYc)