Норм код. Не понимаю почему не решается.
package com.javarush.task.pk04.task0403;
import java.util.Scanner;
/*
Суммирование
*/
public class Solution {
public static void main(String[] args) {
//напишите тут ваш код
Scanner scanner = new Scanner(System.in);
int digit = 0;
while (true){
String input = scanner.nextLine();
if (input.equals("ENTER")){
break;
}
digit += Integer.parseInt(input);
System.out.println(digit);
}
}
}