Wednesday, 11 November 2015

contoh kasus if else untuk pilihan bilangan


public class modul3_d {
 public static void main(String []args){

 int bil=8;
 System.out.println ("masukkan bil anda = "+bil);
 if (bil%2 == 0)
 {
  System.out.println ("aku bil genap");  
 }
 else
 {
     System.out.println("aku bil ganjil");
 }
 }  
}

1 comment:

  1. LuckyClub Casino Site - Bet on Sports at the Best Online
    LuckyClub Casino is one of the best online gambling websites on the market. Check out our reviews and get your bonus now! luckyclub Rating: 4.3 · ‎56 votes

    ReplyDelete