Write a C# application that asks the user to input the required data to implement the four methods below:
(Use Method Overloading to write the methods)
Method Vol that takes as input, double values ‘r’ (radius) and ‘h’ (height), calculates the volume of a cone, and displays it. [Volume = 1/3 πr^2 h]
Method Vol that takes as input, double values ‘B’ (base area) and ‘h’ (height), calculates the volume of a pyramid, and displays it. [Volume = 1/3 Bh]
Method Vol that takes as input, a double value ‘r’ (radius), calculates the volume of a sphere, and displays it. [Volume = 4/3 πr^3]
[15 Marks]
ممكن مساعدة ف السؤال ماقدرت افهمه
اكون شاكرة لكم