Write a program that calculates circumference and area, C/C++ Programming

Write a program called A1Q3, that reads it the radius of a circle as an integer and prints the circle's diameter, circumference and area.  Use a constant value for pi.  Do all calculations in the output statements.  The output should be in a table format using a tab escape code to align columns.  What happens when the user enters a radius as a real number?

Here is a sample run:

What is the radius: 4 

Diameter:     12.5664

Circumference: 25.1327

Area:      50.2654

Posted Date: 3/8/2013 6:05:08 AM | Location : United States







Related Discussions:- Write a program that calculates circumference and area, Assignment Help, Ask Question on Write a program that calculates circumference and area, Get Answer, Expert's Help, Write a program that calculates circumference and area Discussions

Write discussion on Write a program that calculates circumference and area
Your posts are moderated
Related Questions
C program to print fibonacci series: int fibo(long int); void main() {                 long int a=0,n;                 printf ("how many terms\n");

What is meant by open addressing? Explain various collision resolution techniques with example

differentiate between inbuilt and user defined functions

Sir i want to know all the basic knowledge of turbo c.

Convert coordinate: class rect{                 private :                 float  x,y;                   public :                 void  input()

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

Draw a picture using line: void main(void) {     int   driver = DETECT,mode;     int   x[10],y[10];     int   x_center = 360, y_center = 180, rad = 100;     int

flow chart for push operation in stack

C language lets us do this in a structure definition by putting: bit length after the variable that is. struct packed_struct { unsigned int f1:1; unsigned int f2:1; unsigned

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