what do you mean with your first line:
float tan * theta = sin(theta) / Cos(theta);
perhaps something like this ?
Func<double, double> tan = x => Math.Sin(x) / Math.Cos(x)
I would change your code snippet to:
void Main()
{
Func<double, double> tan = x => Math.Sin(x) / Math.Cos(x);
Console.WriteLine("Enter the height: ");
double H = double.Parse(Console.ReadLine());
Console.WriteLine("Enter the angle: ");
double theta = double.Parse(Console.ReadLine());
double Range = 4 * H / tan(theta);
Console.Write("Result = {0} " ,Range);
}
As Math.Sin() returns a double you might want to change your local variables to the same type.