Created
September 3, 2019 02:48
-
-
Save parzibyte/0e13fc43378adbab44d708b966ab53ad 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> | |
// https://parzibyte.me/blog/2019/06/19/namespaces-cpp-using-namespace/ | |
using namespace std; | |
int main() { | |
int numero = 0; | |
string numeroComoCadena = "2811"; | |
numero = stoi(numeroComoCadena); | |
std::cout << "El número es " << numero << " y el doble del mismo es " | |
<< numero * 2; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment