var
tmp, sum : integer;
begin
sum := 0;
while not eoln do
begin
read (tmp);
if (tmp >= 10) and (tmp <= 15) then
sum := sum + tmp;
end;
writeln (sum);
end.
1)изображение
2) Текстовой документ
3) Видеозапись
4) видеозапись
5) Текстовый документ
JAVA
class Main{
p s v main(String[] args]{
int N, X, Y, S;
Scanner sc = new Scanner(System.in) // Ввод
int toExit = 1;
while(toExit != 0){
N = sc.nextInt();
if(1 <= N =< 50)
tiExit = 0};
int toExit = 1;
while(toExit != 0){
X = sc.nextInt();
if(10 <= N =< 50)
tiExit = 0};
int toExit = 1;
while(toExit != 0){
N = sc.nextInt();
if(5 <= N =< 15)
tiExit = 0};
S = (N * X) + (N * Y);
System.out.print("S: " + S);
}}