Home
О нас
Products
Services
Регистрация
Войти
Поиск
ProstoGepard
@ProstoGepard
December 2021
1
7
Report
Составьте программу, которая формирует массив из 40 случайных чисел от 0 до 20 и вычисляет, сумму чисел, кратных 3
Please enter comments
Please enter your name.
Please enter the correct email address.
Agree to
terms of service
You must agree before submitting.
Send
Answers & Comments
ychilkati
Verified answer
Const
n=40;
var
i, s:integer;
m:array[1..n] of integer;
begin
Randomize;
for i:=1 to n do
begin m[i]:=Random(21)+0; Write(m[i],' ') end;
Writeln;
s:=0;
for i:=1 to n do begin
if m[i] mod 3=0 then s:=s + m[i]
end;
Writeln
end.
0 votes
Thanks 0
×
Report "Составьте программу, которая формирует массив из 40 случайных чисел от 0 до 20 и..."
Your name
Email
Reason
-Select Reason-
Pornographic
Defamatory
Illegal/Unlawful
Spam
Other Terms Of Service Violation
File a copyright complaint
Description
Helpful Links
О нас
Политика конфиденциальности
Правила и условия
Copyright
Контакты
Helpful Social
Get monthly updates
Submit
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
Constn=40;
var
i, s:integer;
m:array[1..n] of integer;
begin
Randomize;
for i:=1 to n do
begin m[i]:=Random(21)+0; Write(m[i],' ') end;
Writeln;
s:=0;
for i:=1 to n do begin
if m[i] mod 3=0 then s:=s + m[i]
end;
Writeln
end.