diceman76
New member
- Joined
- Feb 9, 2020
- Messages
- 3
- Programming Experience
- Beginner
using System;
class MainClass {
public static void Main (string[] args) {
Console.WriteLine ("Please enter your weight in pounds");
Input weight;
Console.WriteLine ("Please enter your height in inches");
Input height;
Input BMI=weight*703/(height*height);
Console.WriteLine ("Your body mass Index is BMI");
if(BMI>25)
Display("You are somewhat overweight.");
else if(BMI<18.5);
Display("You are somewhat underweight.");
else(BMI<18.5 && BMI<=25);
Display ("Congratulations! You are within a healthy weight range.");
}
}
class MainClass {
public static void Main (string[] args) {
Console.WriteLine ("Please enter your weight in pounds");
Input weight;
Console.WriteLine ("Please enter your height in inches");
Input height;
Input BMI=weight*703/(height*height);
Console.WriteLine ("Your body mass Index is BMI");
if(BMI>25)
Display("You are somewhat overweight.");
else if(BMI<18.5);
Display("You are somewhat underweight.");
else(BMI<18.5 && BMI<=25);
Display ("Congratulations! You are within a healthy weight range.");
}
}