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
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

I have a assignment deadline is 11.11.2015 can I get help

Explain Formatted Input Output with File Pointer? Likewise there are equivalents to the functions scanf and printf which write or read data to files. These are called fscanf a

Write a program that finds the minimum total number of shelves, including the initial one required for this loading process.

Define the Conditional Operator in c language? The Simple conditional operator can be carried out with the conditional operators (? And :). An expression that makes use of the

how to declare arrays

Write a function that has two int parameters num and n, and returns TRUE when the nth bit in num is 1, otherwise FALSE. This function should use the function in the above problem.

Write a program to print a digital clock which displays the time for 2 hours .

Classify computer system according to capacity. How they are different from computers according to the classification of technology. Provide comparative study also.