Question: (a) AC program asks the user for the radius of a circle and calculate its area and circumference. The calculated values are then displayed. An

 (a) AC program asks the user for the radius of a

(a) AC program asks the user for the radius of a circle and calculate its area and circumference. The calculated values are then displayed. An example of the output is as follows (The number 5" is a user input): Insert radius 5 Area 78.50 Circumference 31.40 Partial code fragment of the program is given below. You are to fill in the missing parts of the program to make it work are NOT allowed to make changes to the main() function and the function prototype that are already given. (Hint: You may need global parameters.) sible. You #include #define Pl 3.14 void cir() int main() double r, a printf"Insert radius ); scanf("%lf", &r); a = area(r) printf("Area-903 .21rn",a); R r cir); return 0; (b) Write the output of the following C program #include #define SIZE 5 int main() int arri [SIZE][SIZE]={{l },{0,1},{0,0,1 },{0,0,0,1 }); int arr21-2,-1,0,1,2); int?, k, sum-SIZE; for (i-0;i int main() char arrl [ "ABCDEFG"; int arr2 1-3,6,7,2,5,6,7),i; for(i-0: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!