2-11 Sale

posted Jan 18, 2014, 10:15 AM by dldar masud   [ updated Jan 19, 2014, 9:51 AM by Karwan Jacksi ]
//2-11 Sale


package sale;


public class Sale {

    // This program demonstrates the double data type.

    public static void main(String[] args) {

        // TODO code application logic here
        double price, tax, total;
        price=29.75;
        tax =1.76;
        total =31.51;

        System.out.println("The price of the item " +
        "is " +price);

        System.out.println("The tax is " + tax);

        System.out.println("The total is " + total );
    }
}

ċ
Sale.java
(1k)
Karwan Jacksi,
Jan 18, 2014, 10:15 AM
Comments