#include #include using namespace std; float f( float x ) { if ( x < 0.0 ) x = -x; return( 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 ); }