C program to Calculate Area and Circumference of Circle.

#include<stdio.h>
#include<conio.h>
void main()
{
	clrscr();
	float r, area, circum;
	printf("Enter the radius of the circle :");
	scanf("%f",&r);
	area=3.14*r*r;
	circum=2*3.14*r;
	printf("Area of the circle = %f\nCircumference of the circle = %f\n",area,circum);
	getch();
}
C program to Calculate Area and Circumference of Circle. C program to Calculate Area and Circumference of Circle. Reviewed by on December 22, 2019 Rating: 5

No comments:

Powered by Blogger.