Selasa, 01 Maret 2011

Tugas


Percobaan  percabangan if-else
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        int Point;

      Point = 0;
        System.out.println("====================");
        System.out.println("Nama : Heru Firmansyah");
        System.out.println("Point : " + Point);
        if (Point >= 3)
            System.out.println("ket : Emas");
        if (Point >= 2)
            System.out.println("ket : Perak");
        if (Point >= 1)
            System.out.println("ket : Perunggu");
        else
            System.out.println("Ket : tidak dapat mendali");
            System.out.println("=====================");

        // TODO code application logic here
        }
    }

Tidak ada komentar:

Posting Komentar