Skip to content

Instantly share code, notes, and snippets.

@Dulce-Maria-Tolentino-De-Anda
Created February 6, 2025 18:45
Show Gist options
  • Save Dulce-Maria-Tolentino-De-Anda/cf10558a33e5622e3f30e8e3a66b53e1 to your computer and use it in GitHub Desktop.
Save Dulce-Maria-Tolentino-De-Anda/cf10558a33e5622e3f30e8e3a66b53e1 to your computer and use it in GitHub Desktop.
ejemplo de funcion flecha
//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");
}
@Dulce-Maria-Tolentino-De-Anda
Copy link
Author

salida el ejemplo flechas resta
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment