I have this function as follows:
private int Calc_bmi(int userid, int wt, int ht) {
int bmi = ((wt / ht) / ht) * 10000;
}
The values of variables wt
and ht
are correct. I also tried it with using float bmi
and also using Convert.ToInt32
but it doesn't seem to work. It returns 0 every time. What am I doing wrong?