..
Free
|
|||||||
|
|
|||||||
/* Program to calculate area of circle and its circumference.*/#include<stdio.h> #include<conio.h> #define PI 3.14 int main() { float r,area,circum; clrscr(); printf("enter value of radius: "); scanf("%f",&r); area=PI*r*r; circum=2*PI*r; printf("value of area is %f",area); printf("value of circumference is %f",circum); getch(); return 0; } COPYRIGHT 2009 ALL RIGHTS RESERVED FREECPROGRAMS.COM |
|||||||