Let’s understand some concept.
In this programme, calculate the area, circumference & radius of the circle by using mathematical formula. Area =pie*r*r, The circumference =2*pie*r. Other are made by this. Here is so simple concept..
Calculate the area of circle by entering the radius of circle
Some important symbols used in code.
- () small bracket
- && use for ‘and’ use for address
- {} curly bracket
- “” double code

- #include<studio.h>
- #include<conio.h>
- void main()
- {
- float pie=3.14, r, area;
- clrscr();
- printf(“Enter the radius of circle to calculate the area”);
- scanf(“%f”, &r);
- area=pie*(r*r);
- printf(“area of the circle = %f”, area);
- getch();
- }
Inputs..
If r= 50 then
Results..

Calculate the radius by entering the area of the circle.

- #include<studio.h>
- #include<math.h>
- int main()
- {
- float pie=3.14,r,area,radius;
- printf(“Enter the Area of circle”);
- scanf(“%f”, &area);
- r=area/pie;
- radius=sqrt(r);
- printf(“radius Of the circle =%f”, radius);
- return 0;
- }
Inputs..
If area =123
Results..

Calculate the circumference of circle by entering the radius of circle

- #include<studio.h>
- #include<conio.h>
- void main()
- {
- float pie=3.14, r, circum;
- clrscr();
- printf(“Enter the radius of circle to calculate the circumference of the circle”);
- scanf(“%f”, &r);
- circum=2*pie*r;
- printf(“circumference of the circle = %f”, circum);
- getch();
- }
Inputs..
If r=50 then
Results..

Calculate the radius by entering the circumference of the circle.
- #include<studio.h>
- #include<conio.h>
- void main()
- {
- float pie=3.14, r, circum;
- clrscr();
- printf(“Enter the circumference of circle to calculate the radius of the circle”);
- scanf(“%f”, &circum);
- r=circum/2*pie;
- printf(“radius of the circle = %f”, radius);
- getch();
- }
Inputs..
If circum =314 then
Results..
Radius = 50


#include<stdio.h>
#include<conio.h>
LikeLike