Tech Study

How To Calculate Area Of Circle In C Program

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

C Program to Calculate Percentage Marks & Division

Write C program to calculate power using while & for loop

TaggedC++ Program to Calculate Area of Circle

Python Examples

Introduction: Python Examples are the basic programming concepts of python like python syntax,python data types,,python operators,python if else,python comments etc.. …

Read more

C String Functions

C String Functions perform certain operations, It provides many useful string functions which can come into action. The <string.h> header …

Read more