Teknik Informatika's World

Minggu, 11 Mei 2014

 Menghitung gaji kotor, potongan dan gaji bersih
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pertemuan3_modul2;

/**
 *
 * @author pemrograman
 */
public class Soal_ke5 {
    public static void main(String [] args)
    {
        double a=1000;
        double b=a*9600;
        double c=b*0.1;
        double d=b-c;
       
        System.out.println("gaji kotor\t=Rp."+b);
        System.out.println("Potongan\t=Rp."+c);
        System.out.println("Gaji bersih\t=Rp."+d);
       
    }
   
}

Tidak ada komentar:

Posting Komentar