Skip to content

Instantly share code, notes, and snippets.

@Mota-Jesus
Created February 6, 2025 18:33
Show Gist options
  • Save Mota-Jesus/fc7deaba7e3b9006eeeec2eb335399df to your computer and use it in GitHub Desktop.
Save Mota-Jesus/fc7deaba7e3b9006eeeec2eb335399df to your computer and use it in GitHub Desktop.
Funcion que devuelve valor return utiliza parametros de entrada
// funciones basicas que devuelva valor,
// y ejecuta las instrucciones entre llaves
int resta(int a, int b){
return a - b;
}
void main() {
print("Jesus Mota 22308051281275");
int x = 9;
int y = 3;
int r = resta(x,y);
print("La Resta de $x - $y es $r");
}
@Mota-Jesus
Copy link
Author

Salida
image

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