Здесь Вы можете найти ответы на многие вопросы или задать свой вопрос!
б,в,г,е - лцд остальное к трубке
var x1,x2,x3,s1,s2,s3: integer;
function sumofnumber(num: integer): integer;
var s: string;
i: integer;
begin
s: =str(num);
for i: = 1 to length(s) do
sumofnumber: = sumofnumber+int(s[i]);
end;
read(x1,x2,x3);
s1: =sumofnumber(x1);
s2: =sumofnumber(x2);
s3: =sumofnumber(x3);
if s1> s2 and s1> s3 then writeln(x1);
if s2> s1 and s2> s3 then writeln(x2);
if s3> s2 and s3> s1 then writeln(x3);
end.
в правильности написания функции типов не уверенна.
var
a: array[1..100] of integer;
i,s,r: integer;
for i: =1 to 100 do read(a[i]);
for i: =1 to 100 do
if a[i]< 0 then r: =r+a[i] else s: =s+a[i];
writeln('сумма всех положительных чисел= ',s);
writeln('сумма всех отрицательных чисел= ',r);
readln
посчитает максимум 100 чисел.
v=24*640*480 = 7372800 бит.
737200: 8 = байт.
921 600: 1024 = 900 кб
900: 1024 = 0,88 мб
2 мб : 0,88 мб = 2,28.
количество страниц : 2
Популярные вопросы