Circumference of Circle : C Program

Computer Science » C Program » Circumference of Circle 

Definition :

1. Ellipse in which the two axes are of equal length.
2. Plane curve generated by one point moving at a constant distance from a fixed point.
3. You can compute the circumference of a circle if you know its radius.

Image :

Formula :

circumference (C) = 2πr

Where,
C is the circumference of the circle
r is the radius of the circle

Program :

#include<stdio.h>
 
int main() 
{
   int radius;
   float circumference;
 
   printf("nEnter the radius of Circle : ");
   scanf("%d", &radius);
 
   circumference  = 2 * 3.14 * radius;
   printf("ncircumference   of Circle : %f", circumference);
 
   return (0);
}

Output :

Enter the radius of Circle : 2.0
circumference  of Circle : 12.56
Subject Name : Computer Science
Exam Name : IIT GATE, UPSC ESE, RRB, SSC, DMRC, NMRC, BSNL, DRDO, ISRO, BARC, NIELIT
Posts Name : Assistant Engineer, Management Trainee, Junior Engineer, Technical Assistant
Computer Science Books

GATE 2023 Total InfoENGG DIPLOMAUGC NET Total Info
IES 2023 Total InfoPSUs 2022 Total InfoCSIR UGC NET Total Info
JAM 2023 Total InfoM TECH 2023 Total InfoRAILWAY 2022 Total Info

Related Posts

  • Area of Circle : C ProgramComputer Science » C Program » Area of Circle  Definition : 1. Ellipse in which the two axes are of equal length. 2. Plane curve generated by one point moving at a constant distance from a fixed point. 3. You can compute the area of a Circle if you know its radius. Image : Formula : [php]area (A) = πr²[/php] Where, A is the area of the Circle r is the radius of the Circle Program : [php]#include<stdio.h> int main() { int radius; float area; printf("nEnter the radius of Circle : "); scanf("%d", &radius); area = 3.14 * radius * radius; printf("nArea of Circle : %f", area); return (0); }[/php] Output : [php]Enter the radius of Circle : 2.0 Area of Circle : 12.56[/php]
    Tags: circle, program, point, radius, output, formula, image, compute, fixed, distance
  • Area of Rhombus : C ProgramComputer Science » C Program » Area of Rhombus  Definition : & Image : Formula : [php]area (A) = (p * q) / 2[/php] Where, A is the area of the Rhombus p is the Diagonal of the Rhombus q is the another Diagonal of the Rhombus Program : [php]#include<stdio.h> int main() { float diagonal1,diagonal2,area; printf("nEnter diagonal1 of Rhombus : "); scanf("%f",&diagonal1); printf("nEnter diagonal2 of Rhombus : "); scanf("%f",&diagonal2); area=(diagonal1 * diagonal2) / 2; printf("nArea of Rhombus : %f",area); return 0; }[/php] Output : [php]Enter diagonal1 of Rhombus : 10.00 Enter diagonal2 of Rhombus : 20.00 Area of Rhombus: 100.00[/php]
    Tags: program, computer, science, definition, image, formula, output, programs, circle
  • Perimeter of Rhombus : C ProgramComputer Science » C Program » Perimeter of Rhombus  Definition : & Image : Formula : [php]perimeter (P) = a + a + a + a = 4a[/php] Where, P is the perimeter of the Rhombus a is the side of the Rhombus Program : [php]#include<stdio.h> int main() { float side,perimeter; printf("nEnter the side of Rhombus : "); scanf("%f",&side); perimeter = 4 * side; printf("nPerimeter of Rhombus : %f", perimeter); return (0); }[/php] Output : [php]Enter the side of Rhombus : 2.0 Perimeter of Rhombus : 8.0[/php]
    Tags: perimeter, program, computer, science, definition, image, formula, output, programs
  • Perimeter of Square : C ProgramComputer Science » C Program » Perimeter of Square  Definition : 1. A plane rectangle with four equal sides and four right angles. 2. A four-sided regular polygon. 3. You can compute the area of a Square if you know the length of its side. Image : Formula : [php]perimeter (P) = a + a + a + a = 4a[/php] Where, P is the perimeter of the Square a is the side of the Square Program : [php]#include<stdio.h> int main() { float side,perimeter; printf("nEnter the side of Square : "); scanf("%f",&side); perimeter = 4 * side; printf("nPerimeter of Square : %f", perimeter); return (0); }[/php] Output : [php]Enter the side of Square : 2.0 Perimeter of Square : 8.0[/php]
    Tags: perimeter, program, output, formula, image, length, compute, equal, plane, definition
  • Perimeter of Rectangle : C ProgramComputer Science » C Program » Perimeter of Rectangle  Definition : 1. A plane figure with 4 sides and 4 right angles and having equal opposite sides. 2. Adjucent sides makes an angle of 90 degree. 3. You can compute the area of a Rectangle if you know its length and breadth. Image : Formula : [php]perimeter (P) = l + b + l + b = 2 (l + b)[/php] Where, P is the perimeter of the Rectangle l is the side of the Rectangle Program : [php]#include<stdio.h> int main() { float length,breadth,perimeter; printf("nEnter the length of Rectangle : "); scanf("%f",&length); printf("nEnter the breadth of Rectangle : "); scanf("%f",&breadth); perimeter = 2 * (length * breadth); printf("nPerimeter of Rectangle : %f", perimeter); return (0); }[/php] Output : [php]Enter the length of Rectangle : 2.0 Enter the breadth of Rectangle : 2.0 Perimeter of Rectangle : 8.0[/php]
    Tags: perimeter, program, output, formula, image, length, compute, equal, plane, definition

LEAVE A REPLY

Please enter your comment!
Please enter your name here