Write C Program to Calculate Area of Circle

Q.: Write C program to calculate the area of circle.

In C Programming, It is always a program which says to calculate area of circle. We can get the area of circle using following formula.

Area of Circle = pi * radius * radius

where, pi=3.14.

Source Code:

#include<stdio.h>
#include<conio.h>

void main()
{
	float rad, area;
	clrscr();
	printf("nnt Enter the Radius of Circle : ");
	scanf("%f",&rad);
	area = 3.14 * rad * rad;
	printf("nnt Area of Circle : %f",area);
	getch();
}

Output:

Area of Circle

Fig.: Calculate Area of Circle in C Programming

Download Now (.Zip File – 9 KB)…

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CommentLuv badge

Human Verification: In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.