ShafetdinovAndrei
?>

Zephrofel male enhancement is the first class formula that handles your sexual limit and supports your physical quality. this improvement pill is made through the formation of testosterone in the body. it likewise enhances the dimension of testosterone sum in the body which restores the essentialness level. this encourages you to perform getting it done on the bed with your accomplice. it is additionally successful in lifting the dispersal of blood in a penile area that bargains in the achievement of better and any longer persevering erections. additionally, it likewise improves the athletic execution of guys that assistance you to perform all the more sincerely at exercise focus encounter the muscle gain quality.click here

Информатика

Ответы

klykovav672
У меня получилось вот что (смотри скриншоты листинга программы и результата работы этой программы):
uses Crt;
const n = 10;
var A: array [1..n] of integer; 
        i: integer;
begin 
ClrScr; 
Randomize; 
WriteLn ( ' Massiv I: '); 
for i:=1 to n do 
    begin     
          A[i] := 1+random(n);  
          Write (A[i]:4); 
    end; 
WriteLn; WriteLn ( ' Massiv II: '); 
for i:=1 to n do 
    begin   
           if (A[i] mod 2 =0) then A[i]:=0 else A[i]:=3*A[i];     
           Write (A[i]:4); 
   end;
ReadLn;
end.     
Составьте программу, которая запол няет массив a [1..10] случайными целыми числа ми в диапазоне от 1
Составьте программу, которая запол няет массив a [1..10] случайными целыми числа ми в диапазоне от 1
Vasilevich Fokin
Program q1;
uses crt;
const n=10;
var i,j:integer;
mass:array [1..n] of integer;
countNum:integer; // переменная для хранения количества нечетных чисел
proizv:integer; // переменная для хранения произведения нечетных чисел
BEGIN
proizv:=1; // так как, изначально равно 0, а при умножении на 0 будет всегда 0
{создание последовательности n целых чисел}
Writeln('Случайные целые числа: ');
for i:=1 to n do
begin
mass[ i ]:=random(9)+1; //присваеваем переменной случайное значение от 1 до 10
write(inttostr(mass[ i ])+', ');
end;
{Вычисление произведения и количества нечетных чисел}
for i:=1 to n do
if mass[ i ] mod 2 <> 0 then //проверяем не четное-ли число, если да, то.. .
begin
inc(countNum); //увеличиваем на один кол-во нечетных чисел
proizv:=proizv*mass[ i ]; // высчитываем произведение
end;
{Вывод результатов}
writeln;
writeln('Всего нечетных чисел: '+inttostr(countNum));
writeln('Их произведение: '+inttostr(proizv));
END.

Ответить на вопрос

Поделитесь своими знаниями, ответьте на вопрос:

Zephrofel male enhancement is the first class formula that handles your sexual limit and supports your physical quality. this improvement pill is made through the formation of testosterone in the body. it likewise enhances the dimension of testosterone sum in the body which restores the essentialness level. this encourages you to perform getting it done on the bed with your accomplice. it is additionally successful in lifting the dispersal of blood in a penile area that bargains in the achievement of better and any longer persevering erections. additionally, it likewise improves the athletic execution of guys that assistance you to perform all the more sincerely at exercise focus encounter the muscle gain quality.click here
Ваше имя (никнейм)*
Email*
Комментарий*

Популярные вопросы в разделе

Liliya-buc
Маркина Ворошилина
ИНФОРМАТИКА НАПИСАТЬ ПРОГРАММУ ПИТОН
badalovao256
ka-shop
Varagyan1728
matoksana
ele922009226536
osipov1984osipov
mg4954531175
mirogall
Lorik-lorik29
elenarumack
TrubnikovKlimenok926
bezpalova2013
▲