### Uzdevums:

1p.
Dota procedūra:
$\begin{array}{l}\mathbf{procedure}\phantom{\rule{0.147em}{0ex}}\mathrm{Proceduura}\left(\mathbf{var}\phantom{\rule{0.147em}{0ex}}n:\phantom{\rule{0.147em}{0ex}}\mathbf{integer}\right);\\ \mathbf{var}\phantom{\rule{0.147em}{0ex}}\mathrm{temp}:\phantom{\rule{0.147em}{0ex}}\mathbf{integer};\\ \mathbf{begin}\\ \phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\mathrm{temp}:=0;\phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\\ \phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\mathbf{while}\phantom{\rule{0.147em}{0ex}}\left(n>0\right)\phantom{\rule{0.147em}{0ex}}\mathbf{do}\\ \phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\mathbf{begin}\\ \phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\mathrm{temp}:=\mathrm{temp}+n\phantom{\rule{0.147em}{0ex}}\mathbf{mod}\phantom{\rule{0.147em}{0ex}}10;\\ \phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}n:=n\phantom{\rule{0.147em}{0ex}}\mathbf{div}\phantom{\rule{0.147em}{0ex}}10;\\ \phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}\mathbf{end};\\ \phantom{\rule{0.147em}{0ex}}\phantom{\rule{0.147em}{0ex}}n:=\mathrm{temp};\\ \mathbf{end};\end{array}$

Sākumā mainīgā Skaitlis vērtība ir 377.
Ieraksti tā vērtību pēc komandas Proceduura(Skaitlis)!
Lai iesniegtu atbildi un redzētu rezultātus, Tev nepieciešams autorizēties. Lūdzu, ielogojies savā profilā vai reģistrējies portālā!