// COMP1511 Week 5 Lab: Circle Facts // // This program was written by YOUR-NAME-HERE (z5555555) // on INSERT-DATE-HERE // // This program prints out facts about a circle given its radius, // using functions. // #include #include double area(double radius); double circumference(double radius); double diameter(double radius); // DO NOT CHANGE THIS MAIN FUNCTION int main(void) { double radius; printf("Enter circle radius: "); scanf("%lf", &radius); printf("Area = %lf\n", area(radius)); printf("Circumference = %lf\n", circumference(radius)); printf("Diameter = %lf\n", diameter(radius)); return 0; } // Calculate the area of a circle, given its radius. double area(double radius) { // TODO: complete this function. return M_PI; // TODO: change this to the correct return value. } // Calculate the circumference of a circle, given its radius. double circumference(double radius) { // TODO: complete this function. return M_PI; // TODO: change this to the correct return value. } // Calculate the diameter of a circle, given its radius. double diameter(double radius) { // TODO: complete this function. return M_PI; // TODO: change this to the correct return value. }