goddam this took an hour to do.
not done yet. yeah i get it now xD.
just have to figure out the surface area now.
feels good to get it right.
how would i make it more accurate. cause it doesn't show the decimal place
Console.WriteLine("Welcome to the cylinder calculator");
Console.WriteLine("Enter The Cylinders Height: ");
string HeightAsString = Console.ReadLine(); //lets the user write something in the console because it is a string
int HeightNumber = Convert.ToInt16(HeightAsString); //user can only enter a number (radius) because its an int
Console.WriteLine("Enter The Cylinders radius: ");
string RadiusAsString = Console.ReadLine(); //lets the user write something in the console because it is a string
int RadiusNumber = Convert.ToInt16(RadiusAsString); //user can only enter a number because its an int
double PI = 3.1415926;
int Volume = Convert.ToInt32(PI * RadiusNumber * RadiusNumber * HeightNumber);
Console.WriteLine("The Volume of the cylinder is: " + Volume);