Calculate the area and circumference of a circle , C/C++ Programming

Write a program which incorporates a function named compute and which is used to calculate the area and circumference of a circle. Use the main function for inputs and outputs.

#include

//function prototype

void ComputeCircle(int r,double &,double &);

int main()

{

int radius;

double area, circ;

cout<<"Enter the radius of your circle"<>radius;

ComputeCircle  (radius,area,circ);

cout<<"The area of the circle is:"<

cout<<"The Circumference of the circle is:"<

}

void ComputeCircle(int r, double & A, double & C) 

Posted Date: 8/21/2012 11:26:07 AM | Location : United States







Related Discussions:- Calculate the area and circumference of a circle , Assignment Help, Ask Question on Calculate the area and circumference of a circle , Get Answer, Expert's Help, Calculate the area and circumference of a circle Discussions

Write discussion on Calculate the area and circumference of a circle
Your posts are moderated
Related Questions
Define the Data Types of c language? The C has a concept of 'data types' which are used to define a variable before its use and the definition of a variable will assign storage

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

Write a C program to input your full forename and full surname. e.g James McCarren and display in one string your complete initial and surname i.e J McCarren . Your initial should

C program to demonstrate call by reference: void disp(int *,int*,int*,int*); void main() {                 int a=2,b=3, sum,mul;                 printf("Enter 1st n

Consider text comprised of sentences and sentences comprised of words. Words in a sentence will be space delimited. Given a text and K strings, task is to find out the number valid

write a program that counts the number of occurrences of the string in the n-th Padovan string P(n)   program in java // aakash , suraj , prem sasi kumar kamaraj college


Buddy systems : A method of handling the storage management problem is kept individual free lists for blocks of dissimilar sizes. Every list having free blocks of only one particul


Operator Overloading Fundamentals The C language uses the concept of Operator Overloading discreetly. The asterisk (*) is used as multiplication operator as well as indirect