C
Program to display area and circumference of a circle
Area and Circumference of a circle in C
/* PROGRAM TO DISPLAY AREA AND CIRCUMFERENCE OF A CIRCLE */ #include
#include
void main() { int r; float area,cir; clrscr(); printf("Enter the radius of the circle\n\n"); scanf("%d",&r); area = 3.14*r*r; cir = 2*3.14*r; printf("\narea of the given circle = %f\n",area); printf("\ncircumference of the given circle = %f",cir); getch(); }
Please send comments to
vgdarur.javafive@blogger.com
Copyright © 2008 - iForeRunner.com
http://www.iforerunner.com/