// Condiciones con if: Comprobar si un número es positivo, negativo o cero. #include using namespace std; float main() { float n1; cout << "Escribe un numero: "; cin >> n1; if (n1>0) cout << "El numero es positivo."; float n2; cout << "Escribe otro numero: "; cin >> n2; if (n2<0) cout << "El numero es negativo."; float n3; cout << "Escribe otro numero: "; cin >> n3; if (n3==0) cout << "Has escrito cero."; return 0; } //Escrito por Lucía 3/12/2019