public static void GetData (ref double h,ref double w){
Console.WriteLine("Height (in):");
h = Convert.ToDouble(Console.ReadLine());
Console.WriteLine("Please enter a positive number!");
Console.WriteLine("Weight (lbs):");
w = Convert.ToDouble(Console.ReadLine());
public static void Main()
Console.WriteLine("Welcome to BMI Calculator");
double result = BMI (h,w,0 );
public static void Display (double bmi){
Console.WriteLine("BMI: " +bmi);
Console.WriteLine("BMI is too LOW! Eat KFC!");
Console.WriteLine("BMI is just RIGHT! Keep going!!");
Console.WriteLine("BMI is too HIGH! Eat more VEGGIES!");
public static double BMI (double height, double weight,int d){
bm = 703*weight/Math.Pow(height,2);