# Task 1. Filling of the massif from a to bdan the massif from 30 elements. To fill the massif since element a to element b with the two, and other elements in zero and to display all massif. It is known that 1< =aformat 2 integers 1< vvodavvoditsya; =aformat vyvodamassiv from 30 elementovPrimerVvod2 10vyvod0 2 2 2 2 2 2 2 2 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0v Pascal ABC which is (not updated)

Askold

342

Var M: array [1. 30] of integer; i, a, b: integer; Begin Read (a, b); For i: = 1 to a-1 do M[i]: = 0; For b: = to b do M[b]: = 2; For i: = b+1 to 30 do M[i]: = 0; For i: = 1 to 30 do Write (M [i]) End.

239

Answer add
Platon

### Other questions in the section - informatics

Bralanim

Find all natural numbers which are not exceeding the set number N, kotoryedelitsya without

2020-10-26 10:00:32

Androdora

Please count PLEASE! IN the PASKALYaSostavte LANGUAGE "We found the program which on k

2020-10-26 10:00:32

Doridred

to define whether belongs three numbers to the piece set from the keyboard are

2020-10-26 10:00:32

Shaligamand

to make the program the solving following problem: the three-digit number is given. to

2020-10-26 10:00:32

Alisa

Napishite the program which removes all prime numbers in the range from 2 to

2020-10-26 10:00:32