Monday, 21 November 2011

Write a Program to calculate area of a circle

#include<conio.h>
#include<stdio.h>
void main()
{
double radius,area_of_circle;
clrscr();
printf("Enter the radius=");
scanf("%lf",&radius);
area_of_circle=3.14*radius*radius;
printf("Area of Circle is=%lf",area_of_circle);
getch();
}

No comments:

Post a Comment