package en.codegym.task.pro.task04.task0403; import java.util.Scanner; /* Summation */ public class Solution { public static void main(String[] args) { //write your code here Scanner console = new Scanner(System.in); boolean isExit = false; int sum = 0; while (!isExit) { String s = console.nextLine(); int number = Integer.parseInt(s); sum += number; isExit = s.equals("ENTER"); } System.out.println(sum); } }