Program to find area and circumference of circle.

C Programming Language Fundamentals of C Language (Article) Fundamentals of C Language (Program)

4386

Program:

#include"stdio.h"
void main()
{
int r;
float pi = 3.14, area, circumference;

printf("enter radius of circle: \n");
scanf("%d",&r);

area = pi * r * r;
printf("area of circle=%f \n",area);

circumference = 2 * pi * r;
printf("circumference=%f \n", circumference);
 
}

Output:

enter radius of circle:
6
area of circle=113.040001
circumference=37.680000
Press any key to continue . . .

This Particular section is dedicated to Programs only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.