Write a Program to find the area of a circle.

#include<stdio.h>
#include<conio.h
#include<math.h>
void main()
{
float r,pi=3.14,area;
clrscr();
printf(“Enter the value of radius = “);
scanf(“%f”,&r);
area = pi*r*r;
printf(“Area of the circle is = %f”,area);
getch();
}

Output:

Posted in: C

Leave a Reply

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