Rabu, 02 Maret 2011


1. If else

Class praktek
  {
      public static void main ( string args [ ] )
          {
              int point;
              point = 3;
                  System.out.println (“=====================”);
                  if(point <=3)
                       System.out.println(“ket: medali emas”);
                  else
                       System.out.println(“ket: medali perak”);
                       System.out.println(“ket: medali perunggu”);
                       System.out.println(“ket: tidak mendapat medali !”);
                       System.out.println(“=====================”);
          )
)

Tidak ada komentar:

Posting Komentar