Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace ConsoleApplication7
- {
- class Program
- {
- static void Main(string[] args)
- {
- double w, h, bmi; // Weight, Height and BMI
- Console.WriteLine("Please enter your weight in kg!"); //Weight
- w = Double.Parse(Console.ReadLine());
- Console.WriteLine("Please enter your height in meters!"); //Height
- h = Double.Parse(Console.ReadLine());
- bmi = w /( h * h);
- Console.WriteLine("Your BMI is:{0}", bmi ); //BMI
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement