### Uzdevums:

1p.
Dota funkcija
 $\begin{array}{l}\mathbf{function}\phantom{\rule{0.147em}{0ex}}\mathrm{ff}\left(n:\phantom{\rule{0.147em}{0ex}}\mathbf{integer}\right):\phantom{\rule{0.147em}{0ex}}\mathbf{integer};\\ \mathbf{begin}\\ \phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\mathbf{if}\phantom{\rule{0.147em}{0ex}}\left(n\phantom{\rule{0.147em}{0ex}}\mathbf{div}\phantom{\rule{0.147em}{0ex}}2=0\right)\phantom{\rule{0.147em}{0ex}}\mathbf{then}\\ \phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\mathrm{ff}:=\left(n\phantom{\rule{0.147em}{0ex}}\mathbf{div}\phantom{\rule{0.147em}{0ex}}2\right)\ast 3;\\ \phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\mathbf{else}\\ \phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\mathrm{ff}:=\left(3\ast n+1\right)\phantom{\rule{0.147em}{0ex}}\mathbf{div}\phantom{\rule{0.147em}{0ex}}2;\\ \mathbf{end};\end{array}$

Ieraksti ff(90) vērtību!
Lai iesniegtu atbildi un redzētu rezultātus, Tev nepieciešams autorizēties. Lūdzu, ielogojies savā profilā vai reģistrējies portālā!