Created
February 5, 2025 04:28
-
-
Save yoanpinzon/6ec692080af01f7ac4fad8ade36d97d3 to your computer and use it in GitHub Desktop.
vampiro
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> | |
using namespace std; | |
int main() { | |
system("chcp 65001 >nul"); | |
bool evitaLuzSolar, tieneColmillos, bebeSangre, reflejoEnEspejo; | |
cout << "Responde con 1 (Sí) o 0 (No) a las siguientes preguntas:\n\n"; | |
cout << "¿Evitas la luz solar? "; | |
cin >> evitaLuzSolar; | |
cout << "¿Tienes colmillos afilados? "; | |
cin >> tieneColmillos; | |
cout << "¿Bebes sangre? "; | |
cin >> bebeSangre; | |
cout << "¿Tienes reflejo en el espejo? "; | |
cin >> reflejoEnEspejo; | |
bool esVampiro = evitaLuzSolar && tieneColmillos && bebeSangre && !reflejoEnEspejo; | |
cout << "\nResultado del análisis:\n"; | |
if (esVampiro) { | |
cout << "🦇 ¡Eres un vampiro! Mejor mantenlo en secreto... 🦇\n"; | |
} else { | |
cout << "😃 No eres un vampiro... al menos por ahora.\n"; | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment