C program for radius of circle, C/C++ Programming

C Program for RADIUS OF CIRCLE

 

#define PI 3.14159

main()

{

          float r,a;

          clrscr();

          printf("ENTER THE RADIUS OF A CIRCLE: ");

          scanf("%f",&r);

          a=PI*r*r;

          printf("\NTHE AREA OF A CIRCLE IS %f",a);

          getch();

}

 

OUTPUT :

 ENTER THE RADIUS OF A CIRCLE: 5

THE AREA OF A CIRCLE IS 78.539743

 

 

Posted Date: 9/10/2012 2:13:47 AM | Location : United States







Related Discussions:- C program for radius of circle, Assignment Help, Ask Question on C program for radius of circle, Get Answer, Expert's Help, C program for radius of circle Discussions

Write discussion on C program for radius of circle
Your posts are moderated
Related Questions
Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b

Train Station C++ Program A C++ program that provides a simple text based interface that will allow a user to create, edit, search, or delete a train schedule. The program will m

Introduction to I/O interfacing, discuss microcontrollers applications in industry. Detailed product design specifications that have sections on both hardware and software inclu

#question.A Padovan string P(n) for a natural number n is defined as: P(0) = ‘X’ P(1) = ‘Y’ P(2) = ‘Z’ P(n) = P(n-2) + P(n-3), n>2 where + denotes string concatenation. For a s


When I develop a destructor, do I require to explicitly call the destructors for my member objects?


Define the following Window class : - integer  data members, width and height - a constructor  that accepts two integer  parameters  (width followed by height) and uses them to ini

c++ program to to implement multiple stacks using single array