C program to find area of circle
#include <stdio.h>
#include <conio.h>
#define PI 3.14
void main()
{
float area;
float radius;
clrscr();
printf("\nEnter Radius : ");
scanf("%f",&radius);
area = PI * radius * radius;
printf("\nArea is : %.2f",area);
getch();
}
Output :
0 comments:
Post a Comment