Friday, 6 March 2015

Find the Perimeter Of Circle

// Find The Perimeter of Circle

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

void main()
{
float p,r;    //p-perimeter , r-radius of circle

clrscr();

printf("Enter the Radius of circle");

scanf("%f",&r);

//Formula for to find Perimeter  2 * pie * radius
p=2*3.14*r;

printf("\nThe Perimeter of Circle is =%f",p) ;

getch();
 

}




Output

Enter the Radius of circle  4

The Perimeter of Circle is=  25.12

No comments:

Post a Comment