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
A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome

Greatest Common Divisor (GCD) - The greatest common divisor (GCD) of two integers is the largest integer that will evenly divide both integers. The GCD algorithm involves intege

Question 1 Write a program that accepts two numbers from the user and swaps the two numbers without using a temporary variable Question 2 Write a program that accepts a 3x

Precedence and Order of evaluation The languages follow a standard precedence for basic operators. Precedence rules help in deleting ambiguity of the order of operations perfor


a program to accept average, if average is 75 to 85 print it out else bypass using counter. enter and process 5 records

Sine function computation

C Program for FUNCTION OF FIND THE FACTORIAL float factorial(float); void main() {           float i=0,c=0;           clrscr();           printf("ENTER THE DIGI

how c program starts executing?

What is copy constructor? describe the concept of copy constructor.