diff --git a/src/coffeeMachine/CoffeMachine.java b/src/coffeeMachine/CoffeMachine.java new file mode 100644 index 0000000..1a6dc4e --- /dev/null +++ b/src/coffeeMachine/CoffeMachine.java @@ -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"); + } +}