Answers for "write a c program to find the area of circle"

C
0

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: %fn", A);
    
}
Posted by: Guest on April-19-2021
0

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=%.4lfn", A);
    return 0;
}
Posted by: Guest on June-28-2021

Code answers related to "write a c program to find the area of circle"

Code answers related to "C"

Browse Popular Code Answers by Language