subject

Create a C function called torus_volume which will have two input parameters-inner (a) and outer (b) radius. The function will calculate the volume of the torus which is given by the following equation:
V = pi pi'(a + b)(a - b)' (a - b)

Now, write a main program which will ask the user to enter the inner radius. The outer radius is calculated as two times larger than the inner radius. This program then will call the torus volume function from the main function to calculate the volume of the torus and print the result inside the main program.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 17:00
What are the 12 colors of the spectrum called?
Answers: 1
question
Computers and Technology, 24.06.2019 00:30
Which boolean operator enables you to exclude a search term? a} not b} and c} or d} plus
Answers: 1
question
Computers and Technology, 24.06.2019 23:40
Which slide should you change so it reflects om all sides of your presentation
Answers: 1
question
Computers and Technology, 25.06.2019 09:30
Which of the following is a reason to include the people who will be using the new technology in conversations about technology upgrades for a business? a. the users would likely know if an upgrade would be necessary or even useful. b. the users would know more about the software than people in the it department. c. the users will be paying for the upgrades with their own money. d. the users will assume the upgrade will cause a drop in productivity.
Answers: 1
You know the right answer?
Create a C function called torus_volume which will have two input parameters-inner (a) and outer (b)...
Questions
Questions on the website: 13722367