Question: Answer the question in the space provided. 1.) What does the following code segment display? Be sure to format your output appropriately (10 pts) #include
Answer the question in the space provided. 1.) What does the following code segment display? Be sure to format your output appropriately (10 pts) #include "stdio.h" double poly(double a, double b); int main() double a=0.0; a = poly (6, 6); printf("f(102,100) = $7.21f ", poly (102,100)); printf("f(-1,1) = 84.21f ", poly(-1,1)); printf("a = 87.51f ", a); printf("%5.31f ", poly(a, 0)); printf("%6.41f ", poly (a+1, a)); return 0; double poly (double a, double b) double result = a - b; if (result 200)) { result = 33.33; return result
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
