#include<stdio.h>
#include<conio.h>
#define pie 3.14
void main()
{
float r,p;;
printf("\n enter radius of circle");
scanf("%f",&r);
p=2*pie*r;
printf("perimeter =%f",p);
getch();
}
#include<conio.h>
#define pie 3.14
void main()
{
float r,p;;
printf("\n enter radius of circle");
scanf("%f",&r);
p=2*pie*r;
printf("perimeter =%f",p);
getch();
}
No comments:
Post a Comment