adsense

Hii, welcome to my site. My name is Om prakash kartik. This blog helps you to learn programming languages concepts.

Program to calculate area of Circle in C

Program to calculate area of Circle in C



//Program to calculate area of Circle in C
#include<stdio.h>
#include<math.h>
#define PI 3.14
 int main()
  {
    float r,area;
    printf("Enter radius of circle :- ");
    scanf("%f",&r);
    //Area of circle
    area = PI * pow(r,2);
    printf("Area of circle : %.2f",area);
    return 0;
  }
Output :-







VIDEO

Post a Comment

0 Comments