using System; namespace LabPuppy2 { /// /// Summary description for Class1. /// class BMI { /// /// The main entry point for the application. /// /// [STAThread] static void Main(string[] args) { Console.Write("What is your height in feet? "); int feet = Convert.ToInt16(Console.ReadLine()); Console.Write("How many inches in your height? "); int inches = Convert.ToInt16(Console.ReadLine()); Console.Write("What is your weight in pounds? "); int weight = Convert.ToInt16(Console.ReadLine()); calcBMI(feet, inches, weight); } public static void calcBMI(int feet, int inches, int weight) { int TotalInches = (feet * 12) + inches; double Meters = TotalInches / 39.36; double SquareMeters = Meters * Meters; double Kilos = weight / 2.2; double BMI = Kilos / SquareMeters; Console.WriteLine("Your BMI is: " + BMI); } } }