I have written a program in C# that runs the Pythagorean Theorem. I would love some help on allowing the program to accept decimal points from the user input. This is what I
Math.Pow doesnt take in decimal. There is already another question on SO about Math.Pow and decimal. Use double.
static void Main(string[] args)
{
double sideA = 0;
double sideB = 0;
double sideC = 0;
Console.Write("Enter an integer for Side A ");
sideA = Convert.ToDouble(Console.ReadLine());
Console.Write("Enter an integer for Side B ");
sideB = Convert.ToDouble(Console.ReadLine());
sideC = Math.Pow((sideA * sideA + sideB * sideB), .5);
Console.Write("Side C has this length...");
Console.WriteLine(sideC);
Console.ReadLine();
}