So, I am doing a fitness bot, and I asked the user´s target weight and also his height, and then I would like to let him know if he is doing right by aiming towards the target he inputed.
if a guy would like to weight 70kg and his height is 1,75m so, his IMC is 22,9 (IMC = 70 kg divided by the square of the height (1,75 x 1,75) = 22,9).
Like this he would be in a perfect shape. Below 18,6 he would be too slim, and above 25 he would be fat.And this is what I would like to calculate for him.
Please help! Thx a lot!
Is there a way to make this happen with database values?
you guys are awesome! thanks a lot! but I haven´t tryed yet… if the way I wrote is right (only the s missing) and the variables are string (or should they be numeber type?), is it gonna work?
I will make it later, I am watching yellow´s partner training, but I know you gys are gonna sleep soon!