Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Last active June 19, 2019 21:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/fc15925e20402ef0355a729ab77f9651 to your computer and use it in GitHub Desktop.
Save parzibyte/fc15925e20402ef0355a729ab77f9651 to your computer and use it in GitHub Desktop.
#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