Create an array of 12 Random numbers with values from -23 to 23 Carry out it to calculate

Create an array of 12 Random numbers with values from -23 to 23 Carry out it to calculate the number and Sum of numbers that are multiples of 5.

var i, s: integer;
n: real;
d: array [1..12] of integer;
begin
for i: = 1 to 12 do
begin
d [i]: = random (47) -23;
write (d [i], ”);
if d [i] mod 5 = 0 then
begin
s: = s + 1;
n: = n + d [i];
end;
end;
writeln (‘Number of numbers:’, s, ‘. Sum of numbers:’, n, ‘.’)
end.




One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.

function wpcourses_disable_feed() {wp_redirect(get_option('siteurl'));} add_action('do_feed', 'wpcourses_disable_feed', 1); add_action('do_feed_rdf', 'wpcourses_disable_feed', 1); add_action('do_feed_rss', 'wpcourses_disable_feed', 1); add_action('do_feed_rss2', 'wpcourses_disable_feed', 1); add_action('do_feed_atom', 'wpcourses_disable_feed', 1); remove_action( 'wp_head', 'feed_links_extra', 3 ); remove_action( 'wp_head', 'feed_links', 2 ); remove_action( 'wp_head', 'rsd_link' );