Get BMI
using System; using System.Collections.Generic; using System.Linq; using System.Web; public static class DataConversion { public static float GetBMI(decimal height, int weight) { return (((float)weight * 703) / (float)(height * height)); } }