backup
This commit is contained in:
30
3/BMI.txt
Normal file
30
3/BMI.txt
Normal file
@@ -0,0 +1,30 @@
|
||||
String bmi = "Normalgewicht";
|
||||
switch (bmi) {
|
||||
case "Starkes untergewicht":
|
||||
System.out.println("BMI < 16");
|
||||
break;
|
||||
case "Mäßiges untergewicht":
|
||||
System.out.println("16 < BMI < 17");
|
||||
break;
|
||||
case "Leichtes untergewicht":
|
||||
System.out.println("17 < BMI < 18.5");
|
||||
break;
|
||||
case "Normalgewicht":
|
||||
System.out.println("18.5 < BMI < 25");
|
||||
break;
|
||||
case "Präadipositas":
|
||||
System.out.println("25 < BMI < 30");
|
||||
break;
|
||||
|
||||
case "Adipositas Grad 1":
|
||||
System.out.println("30 < BMI < 35");
|
||||
break;
|
||||
case "Adipositas Grad 2":
|
||||
System.out.println("35 < BMI < 40");
|
||||
break;
|
||||
case "Adipositas Grad 3":
|
||||
System.out.println("BMI > 40");
|
||||
break;
|
||||
default:
|
||||
System.out.println("dd");
|
||||
} // end of switch mit Switch könnte man
|
||||
Reference in New Issue
Block a user