Revision of Russian help page for resume function after commit 040712019dd358ba8f06b4...
[scilab.git] / scilab / modules / core / help / ru_RU / control_flow / do.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ru" xml:id="do">
3     <refnamediv>
4         <refname>do</refname>
5         <refpurpose>ключевое слово для циклов</refpurpose>
6     </refnamediv>
7     <refsection>
8         <title>Описание</title>
9         <para>
10             Может использоваться внутри циклов <literal>for</literal>  
11             или <literal>while</literal> для отделения определения 
12             переменной цикла и набором инструкций.
13         </para>
14     </refsection>
15     <refsection>
16         <title>Примеры</title>
17         <programlisting role="example"><![CDATA[
18       i = 0
19       while i<5 do
20           disp("i");
21           i = i + 1;
22       end
23  ]]></programlisting>
24         <programlisting role="example"><![CDATA[
25 n=5;
26 for i = 1:n do
27     for j = 1:n do
28         a(i,j) = 1/(i+j-1);
29     end;
30 end
31
32  ]]></programlisting>
33     </refsection>
34     
35     <refsection role="see also">
36         <title>Смотрите также</title>
37         <simplelist type="inline">
38             <member>
39                 <link linkend="for">for</link>
40             </member>
41             <member>
42                 <link linkend="while">while</link>
43             </member>
44         </simplelist>
45     </refsection>
46 </refentry>