this is my codes .
int main () {
float H,W,BMI;
printf("Enter your height in Meters");
scanf("%f",&H);
printf("Enter your weight in Kilograms");
scanf("%f",&W);
BMI = W/(H*H);
printf("%.2f",BMI);
if( BMI, 0 >= 18.5 ){
printf("\nYou are Underweight"); , Everytime is RUN it it shows all like "You are underweightYou are Normal
}
if( BMI , 18.5 >= 25.98){
printf("You are Normal");
}
if(BMI ,25.99 >= 30.99){
printf("You are Overweight");
}
if( BMI > 30 ){
printf("You are Obese");
}
getch();
}
And I'm planning to make it a business .. Like
When the BMI is Underweight . I will serve a Healthy foods . Fruits and Vegetables
When the BMI is Normal . I will serve them Delicious Foods ..
When the BMI is Overweight . I Will serve them a Dietary Food .
When the BMI is Obese I will send them to GYM .
And it Cost everytime i Serve them
Give me idea . Help me in Coding
This post has been edited by Salem_c: 13 October 2012 - 08:17 AM
Reason for edit:: added [code][/code] tags - learn to use them yourself

New Topic/Question
Reply



MultiQuote




|