#include #include using namespace std; float f( float x ) { return( ( x < 0.0 ) ? sqrt( - x ) : sqrt( x ) ); } int main() { float w, y; w = -0.49; y = f(w); cout << "w = " << w << " and f(w) = " << y << endl; cout << "\n\n"; system( "PAUSE" ); return( 0 ); }