CODING:
#include<conio.h>
#include<stdio.h>
#define PI 3.14
void main()
{
float cm,r;
clrscr();
printf("Enter radius of circle: ");
scanf("%f",&r);
cm=2*PI*r;
printf("\n\nCircumference of circle is %.2f",cm);
getch();
}
#include<conio.h>
#include<stdio.h>
#define PI 3.14
void main()
{
float cm,r;
clrscr();
printf("Enter radius of circle: ");
scanf("%f",&r);
cm=2*PI*r;
printf("\n\nCircumference of circle is %.2f",cm);
getch();
}
CODING |
Click on images to view them correctly.
OUTPUT |
For any query or suggestion please comment below...
No comments:
Post a Comment