Created
February 6, 2025 18:48
-
-
Save Danilop-128/3eb51b3376dc680acb1114fb08be6f22 to your computer and use it in GitHub Desktop.
Ejemplo de función 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 devuelva valor, | |
// y 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("Daniela López 22308051281240"); | |
int x =9; | |
int y =3; | |
print(" funcion resta normal"); | |
int r=resta(x,y); | |
print("La suma 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
