From b1387fefc2bc3ef1d7741fbeffe894ac198d10a8 Mon Sep 17 00:00:00 2001 From: SkaviCos Date: Tue, 9 Oct 2018 22:20:41 +0300 Subject: [PATCH 1/2] New file --- src/coffeeMachine/CoffeMachine | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/coffeeMachine/CoffeMachine diff --git a/src/coffeeMachine/CoffeMachine b/src/coffeeMachine/CoffeMachine new file mode 100644 index 0000000..1a6dc4e --- /dev/null +++ b/src/coffeeMachine/CoffeMachine @@ -0,0 +1,13 @@ +import java.util.Scanner; + +public class CoffeMachine { + public static void main(String[] args) { + System.out.println("Write how many cups of coffee you will need:"); + Scanner sc = new Scanner(System.in); + int a = sc.nextInt(); + System.out.println("For" + " " + a + " " + "cups of coffee you will need:"); + System.out.println(a * 200 + " " + "ml of water"); + System.out.println(a * 50 + " " + "ml of milk"); + System.out.println(a * 15 + " " + "g of coffee beans"); + } +} From 8b3fb1af21257bdbc8e1b801add4bb198899d5fa Mon Sep 17 00:00:00 2001 From: SkaviCos Date: Tue, 9 Oct 2018 22:21:01 +0300 Subject: [PATCH 2/2] Rename CoffeMachine to CoffeMachine.java --- src/coffeeMachine/{CoffeMachine => CoffeMachine.java} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename src/coffeeMachine/{CoffeMachine => CoffeMachine.java} (100%) diff --git a/src/coffeeMachine/CoffeMachine b/src/coffeeMachine/CoffeMachine.java similarity index 100% rename from src/coffeeMachine/CoffeMachine rename to src/coffeeMachine/CoffeMachine.java