This code I think is more accurate:
using System;
namespace area
{
class Program
{
static void Main(string[] args)
{
double b;
double h;
Console.WriteLine("Enter your base length: ");
b = Convert.ToDouble(Console.ReadLine());
Console.WriteLine("Enter the height: ");
h = Convert.ToDouble(Console.ReadLine());
double area = Program.calcArea(b, h);
Console.WriteLine(area);
Console.ReadLine();
}
public static double calcArea(double b, double h)
{
return 0.5 * b * h;
}
}
}