-
-
Save parzibyte/fc15925e20402ef0355a729ab77f9651 to your computer and use it in GitHub Desktop.
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
#include <iostream> | |
int sumar(int a, int b) { return a + b; } | |
int main() { | |
auto edad = 20 + 1; | |
std::cout << "La edad: " << edad << "\n"; | |
auto nombre = "Luis"; | |
std::string apellidos = " Cabrera Benito"; | |
auto nombreCompleto = nombre + apellidos; | |
std::cout << "Nombre completo: " << nombreCompleto << "\n"; | |
auto resultado = sumar(1, 2); | |
std::cout << "La suma: " << resultado; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment