Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class BodyMassIndex {
- // Aufgabe 1 - BMI
- public static void main(String[] args) {
- String name = In.readString("Bitte Name eingeben: ");
- System.out.println("Hallo "+name+"!");
- System.out.println("----------------");
- double groesse = In.readDouble("Bitte Ihre Groeße eingeben: ");
- double gewicht = In.readDouble("Bitte Ihr Gewicht eingeben: ");
- System.out.println("----------------");
- double bmi = gewicht/ (groesse * groesse);
- System.out.println("BMI = " +bmi);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement