Skip to content

Instantly share code, notes, and snippets.

@Luis-Herrera1207
Created February 6, 2025 18:46
Show Gist options
  • Save Luis-Herrera1207/3e5d93d287d9caed13b8fbdc62594ed7 to your computer and use it in GitHub Desktop.
Save Luis-Herrera1207/3e5d93d287d9caed13b8fbdc62594ed7 to your computer and use it in GitHub Desktop.
//FUNCIONES BASICAS QUE NO DEVUELVEN VALOR, SOLO EJECUTA INSTRUCCIONES
int res(int a, int b){
return a-b;
}
//FUNCION FLECHA
int flecharestar(int a, int b) => a - b;
void main() {
int resultado = flecharestar(10, 4);
print("HERRERA LUIS 22308051281207");
int x = 9;
int y = 3;
print("FUNCION RESTA NORMAL");
int r = res(x,y);
print("LA RESTA DE $x - $y ES $r");
print("FUNCION RESTA TIPO FLECHA");
print("LA RESTA DE (12,2) ES $resultado"); // Imprime: 6
}
@Luis-Herrera1207
Copy link
Author

SALIDA EJEMPLO FUNCION FLECHA
image

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