Question: The following C program has three (3) syntax errors in it. Identify and correct the errors by stating the line number where they occur

 The following C program has three (3) syntax errors in it. Identify and correct the errors by stating the  

The following C program has three (3) syntax errors in it. Identify and correct the errors by stating the line number where they occur [2 marks each, 6 marks in total]. 10 20 30 40 /* Program to calculate the area of a cone given the base */ /* radius and height */ 50 60 70 80 90 100 110 120 130 140 150 #include #include 160 170 180 190 200 210 220 230 240 250 int main() ( float radius, height; float volume; constant float PI = 3.1415; printf("Enter the radius at the base of the cone (cm): "); scanf ("%f", &radius); printf("Enter the height of the cone (cm): "); scanf ("%f", &height); PI-PI/3.0; volume = (PI* power (radius, 2) * height); printf("The volume of this cone is %.2f cm^2 ", volume); return 0;

Step by Step Solution

3.57 Rating (168 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answer Here are the identified syntax errors in the provided C program along with the correct... View full answer

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 Programming Questions!