"Программа должна посчитать сумму введенных чисел и вывести её на экран."
package com.javarush.task.task04.task0442;
/*
Суммирование
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(read.readLine());
int b = Integer.parseInt(read.readLine());
int c = Integer.parseInt(read.readLine());
int d = Integer.parseInt(read.readLine());
int s = Integer.parseInt(read.readLine());
int e = (a + b + c + d + s);
while (s == -1 ) {
System.out.println(e);
break;
}
}
}