Postingan

Menampilkan postingan dari Oktober, 2014

Tugas Coding

Gambar
Menentukan perbedaan harga di bioskop Coding : /*  * To change this license header, choose License Headers in Project Properties.  * To change this template file, choose Tools | Templates  * and open the template in the editor.  */ /**  *  * @author User  */ import java.util.Scanner; public class For1 {     /**      * @param args the command line arguments      */     public static void main(String[] args) {         // TODO code applicati9on logic here         Scanner Bioskop=new Scanner(System.in);         System.out.print("Nomor Bangku = ");         int No=Bioskop.nextInt();         System.out.print("Hari = ");         int Hari=Bioskop.nextInt();         System.out.print("Kode Film = ");         int Judul=Bioskop.nextInt();         if(Hari==1){             System.out.println("Hari Senin");             System.out.println("Harga = Rp 25.000");         }else if (Hari=="2"){             S