C Program to Calculate Area of Circle

Introduction

C Program to Calculate Area of Circle. I have used Code:: Blocks compiler for debugging purpose. But you can use any C programming language compiler as per your availability.

#include <stdio.h>
#define PI 3.141

int main(){
  float radius, area;
  printf("Enter Radius: ");

  scanf("%f", &radius);
  area = PI * radius * radius;

  printf("%f\n", area);
  return 0;
}

Result

C Program to Calculate Area of Circle
C Program to Calculate Area of Circle

1 thought on “C Program to Calculate Area of Circle”

Leave a Comment