Question: Name 5. (20 pts) There are five (5) lines with errors in the following program. All of these lines contain compile-time syntax errors or warnings

 Name 5. (20 pts) There are five (5) lines with errors

Name 5. (20 pts) There are five (5) lines with errors in the following program. All of these lines contain compile-time syntax errors or warnings (errors or warnings that the compiler would catch). Circle or strike through each line with an error, and then rewrite the line so that it would compile and run correctly. You can write each corrected line off to the right of its errant counterpart. Note: If a line should be there, but is missing, write it where you think it should go. #include int main(void) int i 1; int n; double current 1, previous 1; double phi; /* the golden ratio printf ("How many terms do scanf ("%lf", &n) ; you want estimate phi golden ratio)? " to use to (the do phi = current / previous; next current + previous ; previous = current; current next; while (i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!