Skip to content

Instantly share code, notes, and snippets.

@AlexisJimenez14
Created February 6, 2025 18:33
Show Gist options
  • Save AlexisJimenez14/5b3a62822fc994324a84d4e8eb2a7cce to your computer and use it in GitHub Desktop.
Save AlexisJimenez14/5b3a62822fc994324a84d4e8eb2a7cce to your computer and use it in GitHub Desktop.
funcion que devuelve un valor return utiliza de entrada
//funciones basicas que no devuelven el valor, pero ejecuta las instrucciones entre llves
int resta(int a, int b){
return a-b;
}
void main(){
int x = 9;
int y = 3;
int r=resta(x,y);
print(" Alexis Fabian Jimenez 22308051281213");
print("la resta de $x y de $y es $r");
}
@AlexisJimenez14
Copy link
Author

salida
image

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