1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include <iostream> int main() { int abuelo; int iglesia; std::string salida; std::cin >> abuelo; std::cin >> iglesia; while (abuelo || iglesia) { (iglesia > abuelo) ? salida = "SENIL" : salida = "CUERDO"; std::cout << salida << std::endl; std::cin >> abuelo; std::cin >> iglesia; } }