Thread replies: 7
Thread images: 1
Anonymous
Java Bmi Formula
2016-05-04 06:00:24 Post No. 113940
[Report]
Image search:
[Google]
Java Bmi Formula
Anonymous
2016-05-04 06:00:24
Post No. 113940
[Report]
Im new to java and im trying to do a very simple Bmi calculator, it goes like this:
public static void main(String[] args) {
int weight = 90;
int height = 185;
int result = ( weight / ( height * height));
System.out.println(result);
I donĀ“t fucking understand why when I run it I get a result of 0. Same thing if I put the numbers in a calculator also get a zero. Wtf is wrong?