Answers for "package eatPurchace java code"

0

package eatPurchace java code

package eatPurchace 
public class Purchase {
    public static void main(String[] args) {
        int pizzaSlice;
        int sodaDrink;
        int totalPurchase;
        
        pizzaSlice = 2.99;
        sodaDrink = 2;
        
        totalPurchase = pizzaSlice + sodaDrink;
        
        System.out.print("Your total purchase for today is ");
        System.out.print(totalPurchase);
        System.out.print(" USD");
        
    }
}
Posted by: Guest on June-15-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language