Skip to content

Instantly share code, notes, and snippets.

@floresstd
Created February 6, 2025 18:46
Show Gist options
  • Save floresstd/259bcb34f4585a59308bfa196ea5663e to your computer and use it in GitHub Desktop.
Save floresstd/259bcb34f4585a59308bfa196ea5663e to your computer and use it in GitHub Desktop.
Ejemplo de funcion flecha
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");
}
@floresstd
Copy link
Author

Salida el ejemplo flecha resta
image

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