C Program to calculate area and circumference of the circle

by Nideesh C on April 18, 2011 · 0 comments

in C Programming




#include<stdio.h>
void main()
{
float area, radius, circum;
clrscr();
printf(“nnt ENTER THE RADIUS OF THE CIRCLE…:”);
scanf(“%f”, &radius);
area = 3.142 * radius * radius;
circum = 2 * 3.142 * radius;
printf(“nnt THE AREA OF THE CIRCLE IS…: %f”, area);
printf(“nnt THE CIRCUMFERENCE OF THE CIRCLE IS…: %fn”, circum);
getch();
}

Not Satisfied ? Just search & get the result

Related Posts Plugin for WordPress, Blogger...
Be Sociable, Share!

Related posts:

  1. C program to find the area of a circle, given the radius
  2. C program to accept a figure code and find the ares of different geometrical figures such as circle, square, rectangle etc using switch
  3. C Program – Implement the midpoint circle drawing algorithm
  4. Sample – Program to draw circles.
  5. C program to compute the surface area and volume of a cube

Leave a Comment

Previous post:

Next post: