C program to find the area of a circle:-
#include<stdio.h>
#include<conio.h>
#define PI 3.1416
void main()
{
float a, r, c;
clrscr();
printf("Enter Radious=");
scaf("%f",&r);
a=PI*r*r;
c=2*PI*r;
printf("Area=%f \n Circumference=%f", a, c);
getch();
}
Note:-
Here,
a for Area,
r for radious and
C for circumference.
write a c program that print the area of a circle and circumference,
C program to calculate the area of a circle, C program to calculate the circumference of a circle, C program, C programming, Programming language in C, c,C
No comments:
Post a Comment