Skip to content

Instantly share code, notes, and snippets.

@Adrian-sosaa
Created February 6, 2025 18:45
Show Gist options
  • Save Adrian-sosaa/2fc3f4a30eeb5cc391b265b0c62df69d to your computer and use it in GitHub Desktop.
Save Adrian-sosaa/2fc3f4a30eeb5cc391b265b0c62df69d to your computer and use it in GitHub Desktop.
funcion flecha
//funcion flecha
int resta(int a,int b){
return a-b;
}
int flecharesta(int a, int b) => a - b;
void main() {
print("Jan Sosa 22308051317");
int x = 9;
int y = 3;
print("funcion resta normal");
int r = resta(x,y);
print("la resta de $x - $y es = $r");
print("funcion resta tipo flecha");
int r1 = flecharesta(12,10);
print("la resta de flecharesta(12,10) es = $r1");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment