rompecabezas
#include <iostream> using namespace std; int main() { int x; cin >> x; if (x >= 0 && x <= 10000) { if (x < 0) { cout << "numero negativo"; } else if (x == 0) { cout << "cero"; } else if (x > 0 && x < 10) { cout << "unidad"; } else if (x >= 10 && x < 100) { cout << "decena"; } else if (x >= 100 && x < 1000) { cout << "centena"; } else if (x >= 1000 && x < 10000) { cout << "unidad de mil"; } else if (x == 10000) { cout << "diez mil"; } } return 0; }