I want to run this program, but it won't let me because I get an error saying I'm trying to convert 'decimal' to 'double'. I don't understand why. Nor do I know how I can fix this issue.
class Program
{
static void Main(string[] args)
{
string inputString = Console.ReadLine();
decimal[] hvValues = inputString.Split().Select(decimal.Parse).ToArray();
decimal sinTest = hvValues[1];
decimal sinV = Math.Sin(sinTest);
decimal hypotenusan = hvValues[0] / sinV;
Console.WriteLine(Math.Ceiling(hypotenusan));
}
}