C Program to find area and circumference of circle
#include<stdio.h>
#include<conio.h>
void main()
{
int rad;
float PI=3.14,area,ci;
clrscr();
printf("\nEnter radius of circle: ");
scanf("%d",&rad);
area = PI * rad * rad;
printf("\nArea of circle : %f ",area);
ci = 2 * PI * rad;
printf("\nCircumference : %f ",ci);
getch();
}
Output :
Enter radius of a circle : 1 Area of circle : 3.14 Circumference : 6.28
Incoming search terms:
- w a p to find area of circle by using function (2)
- C program function call area of circle c4learn com (2)
- a program that find circumference and area of a circle using switch case (1)
- program of area and circumference of a circle using pass by value in c (1)
- Program to findout area of rectangle using function (1)
- to find the area of circle by call by value using c (1)