Created
February 6, 2025 18:33
-
-
Save Mota-Jesus/fc7deaba7e3b9006eeeec2eb335399df to your computer and use it in GitHub Desktop.
Funcion que devuelve valor return utiliza 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 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"); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Salida
![image](https://private-user-images.githubusercontent.com/179945479/410592892-7d49b141-454d-41bb-bea9-e5d7aa923c59.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMTQxMjYsIm5iZiI6MTczOTMxMzgyNiwicGF0aCI6Ii8xNzk5NDU0NzkvNDEwNTkyODkyLTdkNDliMTQxLTQ1NGQtNDFiYi1iZWE5LWU1ZDdhYTkyM2M1OS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQyMjQzNDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00YWFkMTI5YTlkMTViNDkwOGMyODFlZjE3YzAxYWRjMjNkZTU1NGI3MDE5N2MyZTQxNzUxMWFhNmUwOWE3YTA0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.sOABQFaIhWBIPPMNrG9VWj8oE4USIEwvhDMx_WYhkpk)