Skip to content

apc-sps-008.c

Problem Statement

WAP to calculate area of circle by accepting radius 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 radius of circle : ");
    scanf("%lf", &r);
    area = M_PI * r * r;
    printf("\nArea : %lf", area);
    return 0;
}