Patulong naman po ako.
I'm trying to create a program that will compute BMI. Pero bago yun, the program has to convert pounds for the mass to kg, and ft. in. to m^2.
Parang ganto:
BMI= Mass(kg) ;However, mass input is in pounds and height input is in ft. in (like 5'6") so it has to be converted.
Height(m^2)
Kaso, I keep receiving the error: incompatible type: possible lossy conversion from double to int.
Please see screenshot.
Please help meeee.
View attachment 283831
I'm trying to create a program that will compute BMI. Pero bago yun, the program has to convert pounds for the mass to kg, and ft. in. to m^2.
Parang ganto:
BMI= Mass(kg) ;However, mass input is in pounds and height input is in ft. in (like 5'6") so it has to be converted.
Height(m^2)
Kaso, I keep receiving the error: incompatible type: possible lossy conversion from double to int.
Please see screenshot.
Please help meeee.
View attachment 283831