commit cc2638310b3d27a8dd2fbbdb981352d629097df0 parent b2977aefb8437928908bc76103e8ce025480ef43 Author: mjkloeckner <martinjkloeckner@gmail.com> Date: Thu, 14 Mar 2024 18:08:06 -0300 Added ej03 solution Diffstat:
| A | solutions/ej03.cpp | | | 12 | ++++++++++++ |
1 file changed, 12 insertions(+), 0 deletions(-) diff --git a/solutions/ej03.cpp b/solutions/ej03.cpp @@ -0,0 +1,12 @@ +#include <iostream> +#include <string> + +int main (void) { + std::string input; + + std::cout << "Ingrese su nombre: "; + std::getline(std::cin, input); + std::cout << "\033[1A\033[0KBienvenido " << input << "!" << std::endl; + + return 0; +}
