by Dinesh Thakur

This is c program that asks user to find out the Area of a circle. User need to declare the math function header file for calculation along with required variables like radius or area. User asks to enter radius of a circle for find out the area. User then uses the method to find out the area of a circle. Then too display result on the screen as result.

Problem Statement:

This is C program that ask user to find out the area of a circle.

  1. Declare the variables.
  2. Using method for area of circle.
  3. Display result on the screen.

Formula to area of circle.
“pi*r*r” (pi=3.14)

Here is C source code to find out the area of circle. The output of this program shown below. 

#include <stdio.h>
main( )
float radius, area;
printf ("Radius = ?  “ ) ;
scanf ( "%f" , &radius) ;
area = 3.14159 * radius * radius;
printf ("Area = %f",area) ;
C Program Write a  program to calculate the area of a C i r c l e