please help with this Q
Write a program to accept two integer numbers from the user input and display
their total, difference product and modulus.
and
Write a C program that will calculate and display the volume of a cone, formatted
to three decimal places, when the user enters the radius and the height of the
cone.
Pay particular attention to the variable types used and the implementation of
the volume calculation.
volume of cone = 1/3 * * r2
* h
Answers
Answered by
0
Answer:
As you can see, this is a cone with a radius of 6 units and a height of 8 units.
In order to calculate the volume of a cone, we need to use this formula:
Volume = 1/3 * Pi * r^2 * h
Hence, the volume is this cone is as follows:
Volume = 1/3 * 22/7 * 6^2 * 8 = 301.59 sq. units.
Thus, the ways to calculate the volume of a cone in C programming are as follows:
Similar questions
English,
19 days ago
Political Science,
19 days ago
Biology,
1 month ago
Math,
1 month ago
Computer Science,
9 months ago
English,
9 months ago