The problem isn’t the script, but that you swapped your variables;
bmi = hei/(wei*wei);
should be
bmi = wei/(hei*hei);
4
solved My script returns wrong value [closed]
The problem isn’t the script, but that you swapped your variables;
bmi = hei/(wei*wei);
should be
bmi = wei/(hei*hei);
4
solved My script returns wrong value [closed]