program to find area of circle


Prev Tutorial Next Tutorial

program to find area of circle

For calculate area of circle you need radius of circle and apply below formula;

Formula

area of circle = 3.14*(radius*radius);

program to find area of circle

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

void main()
{
int radius;
float area_circle=0;
clrscr();
printf("Enter radius of circle: ");
scanf("%d",&radius);
area_circle=3.14*(radius*radius);
printf("\nArea of Circle: %f",area_circle);
getch();
}

Output

Enter radius of circle: 5
Area of Circle: 78.5

Prev Tutorial Next Tutorial

Advertisements




Facebook Likes

Advertisements