C++ program for Calculation of the surface Area and volume of cone

C++ program for Calculation of the surface and the volume of a cone

Write a program that calculates the volume of a solid cone.The formula is: volume=(PI x radius² x height)/3
Read in the values for the parameters height and radius(as floating point numbers).
Then the program should calculate the volume considering the following restriction :radius and height must be greater than0
If the user types in a correct value for one of the variables ,the program should print out an error message and quit.Otherwise,it displays the result.



Partner Sites




Stuff I use to make videos

Windows notebook – http://amzn.to/2zcXPyF

Apple MacBook Pro – http://amzn.to/2BTJBZ7

Desktop - http://amzn.to/2zct252

Microphone – http://amzn.to/2zcYbW1

notebook mouse – http://amzn.to/2BVs4Q3

Screen Recording Software – Camtasia