Untitled
#include <stdio.h> int main() { double r, diameter, circumference, area; printf("Enter the radius of the circle: "); scanf("%lf", &r); diameter = 2*r; circumference = 2*22.0/7*r; printf("Diameter of the circle: %.2lf\n", diameter); printf("Circumference of the circle: %.2lf\n", circumference); printf("Area of the circle: %.2lf\n", area); }