C Program to find area and circumference of Circle
Make a simple c program to find the area and circumference of the circle by inputting the radius of the circle.Below is the sample of the C program with solution -
/*C program to find the area and circumference of circle*/
#include<stdio.h>
void main()
{
float r,pi=3.14,cir,area;
printf("Enter the Radius of the circle \n");
scanf("%f",&r);
cir=2*pi*r;
area=pi*r*r;
printf("\n Circumference of circle is \t %f",cir);
printf("\n Area of circle is \t %f",area);
getch();
}
Input -
Enter the radius of the circle – 3
Output -
Circumference of circle is 18.84
Area of circle is 28.26
3 Comments
→
thanks a lot share this code with me.
#include
void main()
{
printf(“Above program was awesome…………..thank you”);
}
pls any one can tell me the program of the number is prime or not..