Introduce a one-dimensional array M (x), the elements of which are posit. and denied. whole numbers.

Introduce a one-dimensional array M (x), the elements of which are posit. and denied. whole numbers. Find the arithmetic mean of numbers greater than 3; the largest among the last 10 numbers, the quotient of the division of the largest and the mean. Formulate a new array C (N), consisting of the elements of the array M (x), which are greater than the found quotient.

var M: array [1..1000] of integer;

i, j, sum, x, max, imax, ch: integer;

c: array [1..100] of integer;

begin

writeln (‘Enter the size of the array’);

readln (x);

for i: = 1 to x do readln (M [i]);

for i: = 1 to x do if M [i]> 3 then

begin

j: = j + 1;

sum: = sum + M [i];

end;

writeln (The arithmetic mean of numbers greater than three is’, sum mod j);

max: = M [x];

imax: = x;

for i: = (x-1) downto (x-10) do if M [i]> max then begin

max: = M [i];

imax: = i;

end;

writeln (‘Maximum of the last ten items’, M [imax]);

j: = 0;

ch: = M [imax] mod sum;

for i: = 1 to x do if M [i]> ch then c [i]: = M [i];

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' );