aboutsummaryrefslogtreecommitdiff
path: root/c/las12uvas/2019/584_felizDecadaNueva.cpp
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2020-06-01 20:31:09 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2020-06-01 20:31:09 +0200
commita92ba4a005e2bc0cb5b6f0f49cb8e6744e81fff5 (patch)
tree15c403cebfffb3dcf51fcf71b88aa2d8ce735155 /c/las12uvas/2019/584_felizDecadaNueva.cpp
parentfdea465c58e24c7ce613ca6a5538ab8df50660af (diff)
downloadAceptaElReto-a92ba4a005e2bc0cb5b6f0f49cb8e6744e81fff5.tar.gz
AceptaElReto-a92ba4a005e2bc0cb5b6f0f49cb8e6744e81fff5.zip
Problemas resueltos de las uvas de 2019.
Diffstat (limited to 'c/las12uvas/2019/584_felizDecadaNueva.cpp')
-rw-r--r--c/las12uvas/2019/584_felizDecadaNueva.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/c/las12uvas/2019/584_felizDecadaNueva.cpp b/c/las12uvas/2019/584_felizDecadaNueva.cpp
new file mode 100644
index 0000000..4c70be2
--- /dev/null
+++ b/c/las12uvas/2019/584_felizDecadaNueva.cpp
@@ -0,0 +1,13 @@
+#include <iostream>
+
+int main() {
+ int primero;
+ int este;
+ std::string salida;
+ while (std::cin >> primero) {
+ std::cin >> este;
+ este = este - primero;
+ ((este+1) % 10 == 0) ? salida = "FELIZ DECADA NUEVA" : salida = "TOCA ESPERAR";
+ std::cout << salida << std::endl;
+ }
+}