Created
February 6, 2025 18:33
-
-
Save SergioDelgado098/99ffedee79180f150f8a2b87dd033bb7 to your computer and use it in GitHub Desktop.
Funcion que devuelve un valor return, utizando parametros de entrada
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Salida