// radice.C #include #include using namespace std; int main() { double x, y; cout << "Inserire un numero: x = " << endl;; cin >> x; while ( ! cin.eof() ) { if ( x >= 0. ) { y = sqrt( x ); cout << "Radice di " << x << " = " << y << endl; } else { cout << "La radice di " << x << " non e` un numero Reale" << endl; } cout << "Inserire un numero: x = " << endl; cin >> x; } cout << "Non ci sono piu` numeri da leggere" << endl; return 0; }