ayagi it should have been 678 on the last page not 676
676...
672....
Hello gladtoplay5,
You are getting that because you have used the || logical operator. It should have been &&.
if(weight <= 24.9 || weight >= 18.5){
cout << "Your BMI is " << weight << " you are average." << endl;
getch();
return 0;
}
Here if you give 16 as input, then 16 is less than 18.5 so it will print "You are underweight", In the next if condition 16 is less than 24.5 so "you are average" will also printed.
654
me too bye
654...
me too
654
ok
632...