Created
February 6, 2025 18:32
-
-
Save ali-ledezma/b2dca565b41af9cf2adc54c0653cd9b9 to your computer and use it in GitHub Desktop.
funcion devuelve un 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
int resta(int a, int b){ | |
return a-b; | |
} | |
void main(){ | |
print("DIEGO LEDEZMA 22308051281229"); | |
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/179507821/410592461-14d9a369-ad6b-4f81-9131-ef60d1c521ac.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMTQyNjEsIm5iZiI6MTczOTMxMzk2MSwicGF0aCI6Ii8xNzk1MDc4MjEvNDEwNTkyNDYxLTE0ZDlhMzY5LWFkNmItNGY4MS05MTMxLWVmNjBkMWM1MjFhYy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQyMjQ2MDFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zY2Q5ZGM3NTk1NmVhYmVkODNkZGZlNTIxZmMzZDEzOWJkNjFlYzMyYTk0YzMxYzNhZTFkNDFkNDA5Y2E0ZjVhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.mC28Zqg7lAje94JK5UnxWjBkLqInPwPbNLEzfYx_UR0)