In this tutorial I will teach you how to get the volume of a cylinder using c#. We all know that the formula for the volume of a cylinder is pi times radius squared times height. So. I made a program that can help you calculate the volume of a cylinder with ease. In order to use this program, you have to put the radius of the base and the height, then click the calculate button to get the result.