Tuesday, February 10, 2015

Calculate the area of a circle

/* Calculate the area of a circle */ #include <stdio.h> #define PI 3.141 int main() { float r, a; printf("Enter radius of the circle: "); scanf("%f", &r); a = PI * r * r; printf("Area is %f\n", a); getch(); return 0; }

Share

& Comment

0 comments:

Post a Comment

 

Copyright © 2015 Code Fervor™ is a registered trademark.

Designed by Templateism By Naman Kumar