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.