package com.javarush.task.pro.task04.task0403; import java.util.Scanner; /* Суммирование */ public class Solution { public static void main(String[] args) { Scanner s = new Scanner(System.in); int x = 0; boolean z = false; while (!z) { while (s.hasNextInt()) { int y = s.nextInt(); x = x + y; System.out.println(x); } String e = s.nextLine(); z = e.equals("ENTER");} } }