Skip to content

Instantly share code, notes, and snippets.

@SergioDelgado098
Created February 6, 2025 18:33
Show Gist options
  • Save SergioDelgado098/99ffedee79180f150f8a2b87dd033bb7 to your computer and use it in GitHub Desktop.
Save SergioDelgado098/99ffedee79180f150f8a2b87dd033bb7 to your computer and use it in GitHub Desktop.
Funcion que devuelve un valor return, utizando parametros de entrada
// Funciones basicas que devuelven valor
// y ejecutan las instrucciones entre llaves
int resta(int a, int b) {
return a-b;
}
void main () {
int x = 9;
int y = 3;
print (" Sergio Gael Delgado Valle 22308051281169");
int r=resta(x, y);
print ("La resta de $x - $y es: $r");
}
@SergioDelgado098
Copy link
Author

Salida

image

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