// PascalABC.NET
begin
var (k, s) := (0, 0);
repeat
var n := ReadInteger;
k += 1;
s += n
until s > 1000;
Print('Количество', k, 'среднее', s/k)
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
// PascalABC.NET
begin
var (k, s) := (0, 0);
repeat
var n := ReadInteger;
k += 1;
s += n
until s > 1000;
Print('Количество', k, 'среднее', s/k)
end.