Question: owing code has 5 different errors. The errors can be any of three types, L.e., comple (co contain more than one error. Find and c

 owing code has 5 different errors. The errors can be any

owing code has 5 different errors. The errors can be any of three types, L.e., comple (co contain more than one error. Find and c crect line(s) and the same line(s) as corrected. Assume that the proper mple-time and syntax errors), execution (run-time errors), or There may be more than one error of the same type. A line may orrect the errors in the code, i.e., write the required header files have been included. 40 points- 8 points each) 7Program calculates the average of two integers. int main(); int nbri1 nbr2; float avg; printf("nEnter two integers: ) scanf("%1f%2f", &nbr, &nbr2); /calculates the average/ avg nbr1 + nbr2/2; printf "InThe average is: ", avg); return ; Write the line(s) containing the 1* error and correct the line(s). Write the line(s) containing the 2d error and correct the line(s). Write the line(s) containing the 3ad error and correct the line(s). Write the line(s) containing the 4 error and correct the line(s). Writo the line(s) containing the 5th error and correct the line(s)

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!