<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.smath.com/en-US/index.php?action=history&amp;feed=atom&amp;title=While_loop</id>
	<title>While loop - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.smath.com/en-US/index.php?action=history&amp;feed=atom&amp;title=While_loop"/>
	<link rel="alternate" type="text/html" href="https://wiki.smath.com/en-US/index.php?title=While_loop&amp;action=history"/>
	<updated>2026-05-13T10:32:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.5</generator>
	<entry>
		<id>https://wiki.smath.com/en-US/index.php?title=While_loop&amp;diff=243&amp;oldid=prev</id>
		<title>Gleb.Zaborshchikov at 12:11, 12 September 2024</title>
		<link rel="alternate" type="text/html" href="https://wiki.smath.com/en-US/index.php?title=While_loop&amp;diff=243&amp;oldid=prev"/>
		<updated>2024-09-12T12:11:34Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:11, 12 September 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l5&quot;&gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Important note&amp;#039;&amp;#039;&amp;#039;: Inside the &amp;#039;body&amp;#039; ([[line block]] could be used) the &amp;#039;condition&amp;#039; must change from &amp;#039;&amp;#039;&amp;#039;true&amp;#039;&amp;#039;&amp;#039; (different than zero) to &amp;#039;&amp;#039;&amp;#039;false&amp;#039;&amp;#039;&amp;#039; (zero) otherwise we can have the endless (never ending) loop. The only way in this case for while or [[for]] loop is to interrupt the calculation by choosing  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Important note&amp;#039;&amp;#039;&amp;#039;: Inside the &amp;#039;body&amp;#039; ([[line block]] could be used) the &amp;#039;condition&amp;#039; must change from &amp;#039;&amp;#039;&amp;#039;true&amp;#039;&amp;#039;&amp;#039; (different than zero) to &amp;#039;&amp;#039;&amp;#039;false&amp;#039;&amp;#039;&amp;#039; (zero) otherwise we can have the endless (never ending) loop. The only way in this case for while or [[for]] loop is to interrupt the calculation by choosing  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Programming_whileloop1&lt;/del&gt;.png]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;En_programming_whileloop1&lt;/ins&gt;.png]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;As a &amp;#039;&amp;#039;&amp;#039;general rule&amp;#039;&amp;#039;&amp;#039;, if the calculation is too long, make double checking of the &amp;#039;&amp;#039;&amp;#039;loops&amp;#039;&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;As a &amp;#039;&amp;#039;&amp;#039;general rule&amp;#039;&amp;#039;&amp;#039;, if the calculation is too long, make double checking of the &amp;#039;&amp;#039;&amp;#039;loops&amp;#039;&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Gleb.Zaborshchikov</name></author>
	</entry>
	<entry>
		<id>https://wiki.smath.com/en-US/index.php?title=While_loop&amp;diff=241&amp;oldid=prev</id>
		<title>Gleb.Zaborshchikov at 12:09, 12 September 2024</title>
		<link rel="alternate" type="text/html" href="https://wiki.smath.com/en-US/index.php?title=While_loop&amp;diff=241&amp;oldid=prev"/>
		<updated>2024-09-12T12:09:52Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:09, 12 September 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l11&quot;&gt;Line 11:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 11:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here is a simple example of using &amp;#039;&amp;#039;&amp;#039;while&amp;#039;&amp;#039;&amp;#039; loop:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here is a simple example of using &amp;#039;&amp;#039;&amp;#039;while&amp;#039;&amp;#039;&amp;#039; loop:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Programming_whileloop2&lt;/del&gt;.png]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;En_programming_whileloop2&lt;/ins&gt;.png]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Gleb.Zaborshchikov</name></author>
	</entry>
	<entry>
		<id>https://wiki.smath.com/en-US/index.php?title=While_loop&amp;diff=232&amp;oldid=prev</id>
		<title>Gleb.Zaborshchikov at 11:44, 22 August 2024</title>
		<link rel="alternate" type="text/html" href="https://wiki.smath.com/en-US/index.php?title=While_loop&amp;diff=232&amp;oldid=prev"/>
		<updated>2024-08-22T11:44:52Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:44, 22 August 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l3&quot;&gt;Line 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Advice: Choose it from the Programming palette&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Advice: Choose it from the Programming palette&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;&#039;&#039;Important note&#039;&#039;&#039;: Inside the &#039;body&#039; ([[line]] could be used) the &#039;condition&#039; must change from &#039;&#039;&#039;true&#039;&#039;&#039; (different than zero) to &#039;&#039;&#039;false&#039;&#039;&#039; (zero) otherwise we can have the endless (never ending) loop. The only way in this case for while or [[for]] loop is to interrupt the calculation by choosing  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;&#039;&#039;Important note&#039;&#039;&#039;: Inside the &#039;body&#039; ([[line &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;block&lt;/ins&gt;]] could be used) the &#039;condition&#039; must change from &#039;&#039;&#039;true&#039;&#039;&#039; (different than zero) to &#039;&#039;&#039;false&#039;&#039;&#039; (zero) otherwise we can have the endless (never ending) loop. The only way in this case for while or [[for]] loop is to interrupt the calculation by choosing  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:Programming_whileloop1.png]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:Programming_whileloop1.png]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Gleb.Zaborshchikov</name></author>
	</entry>
	<entry>
		<id>https://wiki.smath.com/en-US/index.php?title=While_loop&amp;diff=231&amp;oldid=prev</id>
		<title>Gleb.Zaborshchikov: Created page with &quot;&#039;&#039;&#039;while&#039;&#039;&#039;(&#039;condition&#039;,&#039;body&#039;) - Function of iterations. The cycle carries out a &#039;body&#039; while the &#039;condition&#039; is true.   &#039;&#039;&#039;Advice: Choose it from the Programming palette&#039;&#039;&#039;  &#039;&#039;&#039;Important note&#039;&#039;&#039;: Inside the &#039;body&#039; (line could be used) the &#039;condition&#039; must change from &#039;&#039;&#039;true&#039;&#039;&#039; (different than zero) to &#039;&#039;&#039;false&#039;&#039;&#039; (zero) otherwise we can have the endless (never ending) loop. The only way in this case for while or for loop is to interrupt the calculation by choo...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.smath.com/en-US/index.php?title=While_loop&amp;diff=231&amp;oldid=prev"/>
		<updated>2024-08-22T11:43:49Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;while&amp;#039;&amp;#039;&amp;#039;(&amp;#039;condition&amp;#039;,&amp;#039;body&amp;#039;) - Function of iterations. The cycle carries out a &amp;#039;body&amp;#039; while the &amp;#039;condition&amp;#039; is true.   &amp;#039;&amp;#039;&amp;#039;Advice: Choose it from the Programming palette&amp;#039;&amp;#039;&amp;#039;  &amp;#039;&amp;#039;&amp;#039;Important note&amp;#039;&amp;#039;&amp;#039;: Inside the &amp;#039;body&amp;#039; (&lt;a href=&quot;/en-US/index.php?title=Line&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Line (page does not exist)&quot;&gt;line&lt;/a&gt; could be used) the &amp;#039;condition&amp;#039; must change from &amp;#039;&amp;#039;&amp;#039;true&amp;#039;&amp;#039;&amp;#039; (different than zero) to &amp;#039;&amp;#039;&amp;#039;false&amp;#039;&amp;#039;&amp;#039; (zero) otherwise we can have the endless (never ending) loop. The only way in this case for while or &lt;a href=&quot;/en-US/index.php?title=For&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;For (page does not exist)&quot;&gt;for&lt;/a&gt; loop is to interrupt the calculation by choo...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;while&amp;#039;&amp;#039;&amp;#039;(&amp;#039;condition&amp;#039;,&amp;#039;body&amp;#039;) - Function of iterations. The cycle carries out a &amp;#039;body&amp;#039; while the &amp;#039;condition&amp;#039; is true. &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Advice: Choose it from the Programming palette&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Important note&amp;#039;&amp;#039;&amp;#039;: Inside the &amp;#039;body&amp;#039; ([[line]] could be used) the &amp;#039;condition&amp;#039; must change from &amp;#039;&amp;#039;&amp;#039;true&amp;#039;&amp;#039;&amp;#039; (different than zero) to &amp;#039;&amp;#039;&amp;#039;false&amp;#039;&amp;#039;&amp;#039; (zero) otherwise we can have the endless (never ending) loop. The only way in this case for while or [[for]] loop is to interrupt the calculation by choosing &lt;br /&gt;
&lt;br /&gt;
[[File:Programming_whileloop1.png]]&lt;br /&gt;
&lt;br /&gt;
As a &amp;#039;&amp;#039;&amp;#039;general rule&amp;#039;&amp;#039;&amp;#039;, if the calculation is too long, make double checking of the &amp;#039;&amp;#039;&amp;#039;loops&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
Here is a simple example of using &amp;#039;&amp;#039;&amp;#039;while&amp;#039;&amp;#039;&amp;#039; loop:&lt;br /&gt;
&lt;br /&gt;
[[File:Programming_whileloop2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;This page is inspired by legacy wiki article https://smath.info/wiki/while.ashx.&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:SMath Studio/Programming]]&lt;/div&gt;</summary>
		<author><name>Gleb.Zaborshchikov</name></author>
	</entry>
</feed>