Question: Question 2 : ( 2 marks ) Find the errors in the following pieces of code and correct them: table [ [ , Code,Error,Correction

Question 2: (2 marks)
Find the errors in the following pieces of code and correct them:
\table[[,Code,Error,Correction],[1,\table[[(2 errors)],[float x;],[printf ("Enter a number");],[scanf ("%i", x);]],\table[[(for each],[0.25 mark)]],(for each 0.25 mark)],[2,\table[[(2 errors)],[int count;],[/Calculate the result],[count =5+7-10/2;],[printf ("The result is %i
"],[count);]],\table[[(for each],[0.25 mark)]],(for each 0.25 mark)]]
 Question 2: (2 marks) Find the errors in the following pieces

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!