My First Project
import java.util.Scanner;
/*
BKİ 18.5 altı weak
BKİ 18.5 25 arası normal
BKİ 25 30 arası overwight
BKİ 30 fazlası veryowerweight
*/
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("Weight:");
int weight = scanner.nextInt();System.out.println("size:");
double size = scanner.nextDouble();
double bki = (weight / (size * size));
if (bki < 18.5); {
System.out.println("Normal Weak.");
}
else if (bki >= 18.5 && bki < 25) {System.out.println("Normal.");
}
else if (bki >= 25 && bki < 30) {System.out.println("Very Overweight");
}
else if (bki >= 30) {System.out.println("Very Very Overwight");
}
}
}
I was new starting.Java is very nice and funny.This is hard but no problem. I love to difficult programs.Because I am hard man. This codes are nice codes.But From I am new starting.I need to peoples.Thank you. I need to you. Can you help me ? Good bye.