### Uzdevums:

1p.
Dota procedūra
 $\begin{array}{l}\phantom{\rule{0.147em}{0ex}}\mathbf{procedure}\phantom{\rule{0.147em}{0ex}}\mathrm{mix}\left(\mathrm{teksts}:\phantom{\rule{0.147em}{0ex}}\mathbf{string}\right);\phantom{\rule{0.147em}{0ex}}\\ \phantom{\rule{0.147em}{0ex}}\mathbf{var}\phantom{\rule{0.147em}{0ex}}i,\phantom{\rule{0.147em}{0ex}}\mathrm{garums}:\phantom{\rule{0.147em}{0ex}}\mathbf{integer};\\ \phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\mathrm{temp}:\phantom{\rule{0.147em}{0ex}}\mathbf{char};\\ \phantom{\rule{0.147em}{0ex}}\mathbf{begin}\\ \phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\mathrm{garums}:=\mathbf{length}\left(\mathrm{teksts}\right);\\ \phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\mathbf{for}\phantom{\rule{0.147em}{0ex}}i:=1\phantom{\rule{0.147em}{0ex}}\mathbf{to}\phantom{\rule{0.147em}{0ex}}\mathrm{garums}\phantom{\rule{0.147em}{0ex}}\mathbf{do}\\ \phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.294em}{0ex}}\phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\mathbf{if}\phantom{\rule{0.147em}{0ex}}\left(i\phantom{\rule{0.147em}{0ex}}\mathbf{mod}\phantom{\rule{0.147em}{0ex}}2=0\right)\phantom{\rule{0.147em}{0ex}}\mathbf{then}\\ \phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.294em}{0ex}}\phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\mathbf{begin}\\ \phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.294em}{0ex}}\phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\mathrm{temp}:=\mathrm{teksts}\left[i\right];\\ \phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.294em}{0ex}}\phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\mathrm{teksts}\left[i\right]:=\mathrm{teksts}\left[i-1\right];\\ \phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.294em}{0ex}}\phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\mathrm{teksts}\left[i-1\right]:=\mathrm{temp};\\ \phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.294em}{0ex}}\phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\mathbf{end};\\ \phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\mathbf{writeln}\left(\mathrm{teksts}\right);\\ \phantom{\rule{0.147em}{0ex}}\mathbf{end};\end{array}$

Šī procedūra tikai izmantota ar mix('SimboluVirkne').

Izvēlies variantu, kas atbilst izvadītajam tekstam!

Lai risinātu uzdevumus, lūdzu reģistrējies!