Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class FoodDelivery {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- int ch = Integer.parseInt(scanner.nextLine());
- int f = Integer.parseInt(scanner.nextLine());
- int ve = Integer.parseInt(scanner.nextLine());
- //• Пилешко меню – 10.35 лв.
- //• Меню с риба – 12.40 лв.
- //• Вегетарианско меню – 8.15 лв.
- double all = (ch * 10.35) + (f * 12.40) + (ve * 8.15);
- double dessert = all * 0.20;
- double alll = all + dessert + 2.50;
- System.out.println(alll);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement