Created
February 6, 2025 18:46
-
-
Save floresstd/259bcb34f4585a59308bfa196ea5663e 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
int resta(int a, int b){ | |
return a-b; | |
} | |
int flecharesta(int a, int b) => a-b; | |
void main() { | |
print("Jesus Flores 223080512811186"); | |
int x = 9; | |
int y = 3; | |
print("funcion resta normal"); | |
int r = resta(x,y); | |
print("El resultado de $x - $y es igual a $r"); | |
print("funcion resta tipo flecha"); | |
int r1 = flecharesta(12,2); | |
print("El resultado de 12 menos 2 es igual a $r1"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Salida el ejemplo flecha resta
