Skip to content

apc-prac-004.c

Problem Statement

WAP to calculate and display radius of a circle by taking the area as input.

Metadata

Property Detail
Author Amit Dutta (amitdutta4255@gmail.com)
License MIT

Actions

Raw View on GitHub

💡 You can print or save this file by opening Raw and using your browser.

Source Code

#include <stdio.h>
#include <math.h>
int main()
{
    double r, area;
    printf("Enter the area of the circle : ");
    scanf("%lf", &area);
    r = sqrt(area / M_PI);
    printf("\nRadius of the circle : %g", r);
    return 0;
}