Code Program (Coding) Program Hitung Berat Badan

Estimated read time: 2 min

Berat Badan Program Java



package beratbadan;

import java.util.Scanner;

/**
 *
 * @author Personal
 */
public class BeratBadan {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner input = new Scanner(System.in);
        Double berat, tinggi;
        Double BMI;  //--> BMI = berat / (tinggi * tinggi);
        String nama;
        System.out.println("------PROGRAM BERAT BADAN------");
        System.out.print  ("Masukkan Nama = ");
        nama = input.nextLine();
        System.out.print  ("Masukkan Berat Badan = ");
        berat = input.nextDouble();
        System.out.print  ("Masukkan Tinggi Badan = ");
        tinggi = input.nextDouble();
        BMI = berat / (tinggi * tinggi);
            if (*********){
                System.out.println("Anda Kurus");
            }
            else if(********){
                System.out.println("Anda Ideal");
            }
            else if(********************){
                System.out.println("Anda Gemuk");
            }
            else if((*****************){
                System.out.println("Anda Sudah Obesitas Tingkat 1");
            }
            else if(***************){
                System.out.println("Anda Sudah Obesitas Tingkat 2");
            }
            else{
                System.out.println("Anda Sudah Obesitas Tingkat 3");
            }
    }
}
Jika Ingin Mendownload Source Code Yang Lebih lengkap Bisa Langsung KLik Link Di Bawah ini

DOWNLOAD SC

Posting Komentar

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.