Unit #5 Homework Problem | |
|
|
5hw1
|
|
Predict the output of this segment of program a = 4; b =3; c = f1 ( a, b ); cout << "\n a = " << a << ", b = " << b << ", c = " << c; c2 = f1 ( c, 2*c ) cout <<"\n c = " << c << ", c2 = " << c2;
The function f1 is defined as: float f1 ( float a, float b) { float d; a = a * a; b = b * b; d = pow( a + b , 0.5 ); return ( d) ; }
|
|