Skip to content

Instantly share code, notes, and snippets.

@Dulce-Maria-Tolentino-De-Anda
Created February 6, 2025 18:33
Show Gist options
  • Save Dulce-Maria-Tolentino-De-Anda/23c04ae7895d2864c287db0eefd15fa6 to your computer and use it in GitHub Desktop.
Save Dulce-Maria-Tolentino-De-Anda/23c04ae7895d2864c287db0eefd15fa6 to your computer and use it in GitHub Desktop.
funcion que devuelve un valor return parametros de entrada
//FUNCIONES BASICAS QUE NO DEVUELVAN EL VALOR
//PERO EJECUTA LAS INSTRUCCIONES ENTRE LLAVEs
int resta (int a, int b){
return a-b;
}
void main() {
print ("DULCE MARIA TOLENTINO DE ANDA 22308051281367");
int x= 9;
int y= 3;
int r=resta(x,y);
print("la resta de $x - $y es $r ");
}
@Dulce-Maria-Tolentino-De-Anda
Copy link
Author

salida

image

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