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
C Program to Check  EVEN & ODD NO   main() {           int n, a;           clrscr();           printf("ENTER ANY NUMBER: ");           scanf("%d", &n);

write a program that declares and initializes 2 integer variable a and b with the value 35 and 14, and displays and calculates their sum,product,quotient and real division result.t


assume that the first integer read with cin specifies the number of values remaining to be entered. that program should read only one value each time cin is executed .a typical inp

the issue of oil spills


how to create a shopping cart and sibmit the code segment on screan

#decode the code

Should my constructors employ "assignment" or "initialization lists"?

What is the real function of class - to export data? No, Real purpose of a class isn't to export data. Instead, it's to provide services. Class provides a way to abstract behav