C Program To Find Area of a Circle

PROGRAM :

#include<stdio.h>
#define pie 3.14 
int  main()
{
    float r,a;
    printf("Enter the Radius of a circle \n");
    scanf("%f",&r);
    a = pie*r*r;
    printf("\nArea of circle having Radius(%.2f) is %.2f",r,a);




OUTPUT :

Enter the Radius of a circle
3

Area of circle having Radius(3.00) is 28.26

Post a Comment

0 Comments