Created
February 6, 2025 18:33
-
-
Save AlexisJimenez14/5b3a62822fc994324a84d4e8eb2a7cce to your computer and use it in GitHub Desktop.
funcion que devuelve un valor return utiliza 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 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"); | |
} |
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/179508424/410592685-1ac8bd82-8db4-4d0e-b739-8055cad472c2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMTQxMDYsIm5iZiI6MTczOTMxMzgwNiwicGF0aCI6Ii8xNzk1MDg0MjQvNDEwNTkyNjg1LTFhYzhiZDgyLThkYjQtNGQwZS1iNzM5LTgwNTVjYWQ0NzJjMi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQyMjQzMjZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jMjVlNTJkMjk2YTIxODlmM2E0MGM0NTJhZGM3M2E4ZDQ4ZmYwNWM2ZTc0MjE2YTZhMjc4Njc4YmVmNDljYTM5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.LPbED95a_RvbBw9ihYubLfgCY8kvZMrCNqCCuPInpgU)