Well, it was very different from the one in the tutorial, but I would like to share this:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Cylinder { class Program { static void Main(string[] args) { double a, h, v; // Inform the user what this program is for. Console.WriteLine("Hello, let's calculate the volume of a cylinder."); // Now the user is certain that he only need to write the numbers. Console.WriteLine("OBS: This program doesn't account for units of measurement."); Console.WriteLine("Please inform the cylinder's surface area: "); a = Convert.ToDouble(Console.ReadLine()); Console.WriteLine("Please inform the cylinder's height: "); h = Convert.ToDouble(Console.ReadLine()); // Now the user input is combined to calculate the volume. v = a * h; // The program's result. Console.WriteLine("The cylinder's volume is " + v); // Debug-wise. Console.ReadLine(); } } }