#include #include using namespace std; double f( double x ) { double fx = sqrt( abs( sin( x ) ) ); return( fx ); } int main() { double x; char option; do { cout << "Enter x: "; cin >> x; cout << "f(x) = " << f(x) << "\n\n"; cout << "Run again? (y for yes) "; cin >> option; cout << endl; } while ( option == 'y' || option == 'Y' ); cout << "\n\n"; system( "PAUSE" ); return( 0 ); }