Answers for "c programming to find area of circle"

C
1

c program to find area of circle

#include <stdio.h>
#define PI 3.142
int main(){
    float R, A;
    printf("Enter the radius: \n");
    scanf("%f", &R);
    A = PI * R * R;
    printf("Area is: %f\n", A);
    
}
Posted by: Guest on April-19-2021
1

Area of a Circle in C Programming

#include<stdio.h>
int main()
{
    double R, A;
    scanf("%lf", &R);
    A = 3.14159 * R * R;
    printf("A=%.4lf\n", A);
    return 0;
}
Posted by: Guest on June-28-2021

Code answers related to "c programming to find area of circle"

Code answers related to "C"

Browse Popular Code Answers by Language