<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="lt">
	<id>https://wiki.pitonas.lt/index.php?action=history&amp;feed=atom&amp;title=Pamokos%2FPy%2FPamoka_A2</id>
	<title>Pamokos/Py/Pamoka A2 - Versijų istorija</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.pitonas.lt/index.php?action=history&amp;feed=atom&amp;title=Pamokos%2FPy%2FPamoka_A2"/>
	<link rel="alternate" type="text/html" href="https://wiki.pitonas.lt/index.php?title=Pamokos/Py/Pamoka_A2&amp;action=history"/>
	<updated>2026-10-07T03:12:23Z</updated>
	<subtitle>Šio puslapio versijų istorija projekte</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://wiki.pitonas.lt/index.php?title=Pamokos/Py/Pamoka_A2&amp;diff=209&amp;oldid=prev</id>
		<title>Eimutis: /* Progresijų generavimas */</title>
		<link rel="alternate" type="text/html" href="https://wiki.pitonas.lt/index.php?title=Pamokos/Py/Pamoka_A2&amp;diff=209&amp;oldid=prev"/>
		<updated>2023-02-09T12:18:18Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Progresijų generavimas&lt;/span&gt;&lt;/span&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;lt&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Ankstesnė versija&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;15:18, 9 vasario 2023 versija&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-l17&quot;&gt;17 eilutė:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;17 eilutė:&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;Išbandykite aritmetinės ir geometrinės progresijų narių skaičiavimą.  &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;Išbandykite aritmetinės ir geometrinės progresijų narių skaičiavimą.  &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;div&gt;Spausdinant realius skaičius yra svarbu apriboti ženklų po kablelio skaičių.  &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;Spausdinant realius skaičius yra svarbu apriboti ženklų po kablelio skaičių.  &lt;/div&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;Tai atliekama formatavimo eilutės pagalba, žiūr. pvz.:&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;Tai atliekama formatavimo eilutės pagalba, žiūr. pvz.: f&#039;{gn:.2f}&#039;, kas reiškia, jog rodomos tik 2 skiltys po kablelio. Atkreipkite dėmesį, kad geometrinės progresijos nariai reiškia, kaip kinta  &lt;/div&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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;print(&lt;/del&gt;f&#039;{gn:.2f}&#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, end=&#039; &#039;)&lt;/del&gt;, kas reiškia, jog rodomos tik 2 skiltys po kablelio.&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&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;Atkreipkite dėmesį, kad geometrinės progresijos nariai reiškia, kaip kinta  &lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&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;jūsų banko indėlis taikant skirtingas palūkanas ☺&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;jūsų banko indėlis taikant skirtingas palūkanas ☺&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;/table&gt;</summary>
		<author><name>Eimutis</name></author>
	</entry>
	<entry>
		<id>https://wiki.pitonas.lt/index.php?title=Pamokos/Py/Pamoka_A2&amp;diff=208&amp;oldid=prev</id>
		<title>Eimutis: /* Progresijų generavimas */</title>
		<link rel="alternate" type="text/html" href="https://wiki.pitonas.lt/index.php?title=Pamokos/Py/Pamoka_A2&amp;diff=208&amp;oldid=prev"/>
		<updated>2023-02-09T12:17:03Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Progresijų generavimas&lt;/span&gt;&lt;/span&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;lt&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Ankstesnė versija&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;15:17, 9 vasario 2023 versija&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-l18&quot;&gt;18 eilutė:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;18 eilutė:&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;Spausdinant realius skaičius yra svarbu apriboti ženklų po kablelio skaičių.  &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;Spausdinant realius skaičius yra svarbu apriboti ženklų po kablelio skaičių.  &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;div&gt;Tai atliekama formatavimo eilutės pagalba, žiūr. pvz.:&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;Tai atliekama formatavimo eilutės pagalba, žiūr. pvz.:&lt;/div&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;print(&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;%0&lt;/del&gt;.2f&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot; % gn&lt;/del&gt;), kas reiškia, jog rodomos tik 2 skiltys po kablelio.&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;print(&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;f&#039;{gn:&lt;/ins&gt;.2f&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;}&#039;, end=&#039; &#039;&lt;/ins&gt;), kas reiškia, jog rodomos tik 2 skiltys po kablelio.&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;div&gt;Atkreipkite dėmesį, kad geometrinės progresijos nariai reiškia, kaip kinta  &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;Atkreipkite dėmesį, kad geometrinės progresijos nariai reiškia, kaip kinta  &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;div&gt;jūsų banko indėlis taikant skirtingas palūkanas ☺&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;jūsų banko indėlis taikant skirtingas palūkanas ☺&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Eimutis</name></author>
	</entry>
	<entry>
		<id>https://wiki.pitonas.lt/index.php?title=Pamokos/Py/Pamoka_A2&amp;diff=152&amp;oldid=prev</id>
		<title>Eimutis: sukurta</title>
		<link rel="alternate" type="text/html" href="https://wiki.pitonas.lt/index.php?title=Pamokos/Py/Pamoka_A2&amp;diff=152&amp;oldid=prev"/>
		<updated>2023-02-06T08:37:26Z</updated>

		<summary type="html">&lt;p&gt;sukurta&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Naujas puslapis&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Range intervalai - išbandome ciklų jėgą&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;Pilnas šios treniruotės Python kodas [https://www.jdoodle.com/a/3O74 yra čia]&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==Funkcijos range() paskirtis==&lt;br /&gt;
Funkcijos &amp;#039;&amp;#039;&amp;#039;range()&amp;#039;&amp;#039;&amp;#039; pagalba yra generuojamos įvairios sekos, užtikrinamas ciklų kartojimas. Šios funkcijos elgsenai tirti sukurtos demonstracinės funkcijos, kurių vardas prasideda žodeliu demo. Tokios funkcijos paprastai neatlieka jokios konkrečios užduoties, o yra skirtos išsiaiškinti kitų funkcijų veikimą, atliekant bandymus.&amp;lt;br&amp;gt;&lt;br /&gt;
Patikslinsime funkcijos veikimą, panaudodami matematinio intervalo sąvoką &amp;#039;&amp;#039;&amp;#039;[a : b)&amp;#039;&amp;#039;&amp;#039;, kas reiškia pusiau atvirą intervalą, kur reikšmė a priklauso intervalui, tuo tarpu b -ne. Funkcija range() būtent ir generuoja reikšmes iš tokio intervalo. Bendrai galimi tokie funkcijos panaudojimo variantai, kai intervalas &amp;#039;&amp;#039;&amp;#039;[nuo : iki)&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
*&amp;#039;&amp;#039;range(nuo, iki, pokytis)&amp;#039;&amp;#039; – ribos ir pokytis nurodomas konkrečiai;&lt;br /&gt;
*&amp;#039;&amp;#039;range(nuo, iki)&amp;#039;&amp;#039; – pokytis yra lygus vienetui;&lt;br /&gt;
*&amp;#039;&amp;#039;range(iki)&amp;#039;&amp;#039; – nuo yra 0, o pokytis yra lygus vienetui.&lt;br /&gt;
&lt;br /&gt;
==Atvejų aptarimas==&lt;br /&gt;
Kodėl naudojamas pusiau atviras intervalas? Todėl kad tuo atveju skirtumas &amp;#039;&amp;#039;&amp;#039;(iki - nuo)&amp;#039;&amp;#039;&amp;#039; visada duoda elementų skaičių. Vieno argumento atveju parametras tiesiog reiškia kartojimo skaičių. Jei mums reikia kad intervalas [a, b] būtų uždaras, tai reikia rašyti range(a, b+1). Atkreipiami dėmesį, kad funkcija range() yra skirta tik sveikiems skaičiams, realių skaičių atveju gaunama klaida. Generuojamos reikšmės gali būti ir neigiamos. Pokytis taip gali būti neigiamas, tokiu atveju seka bus mažėjanti. Tačiau pokytis negali būti nulis, nes tokiu atveju sekos nariai nesikeis ir būtų begalinis ciklas 🙂.&lt;br /&gt;
&lt;br /&gt;
Visą tą intervalų įvairovę galima išbandyti demonstracinių funkcijų pagalba. Stebėkite gaunamus rezultatus, keiskite parametrus, kol įsitikinsite jog supratote kaip veikia funkcijos.&lt;br /&gt;
&lt;br /&gt;
==Progresijų generavimas==&lt;br /&gt;
Išbandykite aritmetinės ir geometrinės progresijų narių skaičiavimą. &lt;br /&gt;
Spausdinant realius skaičius yra svarbu apriboti ženklų po kablelio skaičių. &lt;br /&gt;
Tai atliekama formatavimo eilutės pagalba, žiūr. pvz.:&lt;br /&gt;
print(&amp;quot;%0.2f&amp;quot; % gn), kas reiškia, jog rodomos tik 2 skiltys po kablelio.&lt;br /&gt;
Atkreipkite dėmesį, kad geometrinės progresijos nariai reiškia, kaip kinta &lt;br /&gt;
jūsų banko indėlis taikant skirtingas palūkanas ☺&lt;br /&gt;
&lt;br /&gt;
==Užduotys savarankiškam darbui==&lt;br /&gt;
Toliau patys parašykite funkciją, skirtą uždaro intervalo [a, b] kvadrato &lt;br /&gt;
reikšmių lentelei spausdinti.&amp;lt;br&amp;gt;&lt;br /&gt;
Įdomus uždavinys yra pilnos sandaugos lentelės sudarymas, kur tenka panaudoti ciklą cikle. Pasižiūrėkite kokius rezultatus reikia gauti ir sukurkite savo funkciją!&lt;br /&gt;
{| class=&amp;quot;mw-collapsible mw-collapsed wikitable&amp;quot;&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; |Rezultatai turi būti tokie &amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
Lentelė 6*6&lt;br /&gt;
   1   2   3   4   5   6&lt;br /&gt;
   2   4   6   8  10  12&lt;br /&gt;
   3   6   9  12  15  18&lt;br /&gt;
   4   8  12  16  20  24&lt;br /&gt;
   5  10  15  20  25  30&lt;br /&gt;
   6  12  18  24  30  36&lt;br /&gt;
Lentelė 10*10&lt;br /&gt;
   1   2   3   4   5   6   7   8   9  10&lt;br /&gt;
   2   4   6   8  10  12  14  16  18  20&lt;br /&gt;
   3   6   9  12  15  18  21  24  27  30&lt;br /&gt;
   4   8  12  16  20  24  28  32  36  40&lt;br /&gt;
   5  10  15  20  25  30  35  40  45  50&lt;br /&gt;
   6  12  18  24  30  36  42  48  54  60&lt;br /&gt;
   7  14  21  28  35  42  49  56  63  70&lt;br /&gt;
   8  16  24  32  40  48  56  64  72  80&lt;br /&gt;
   9  18  27  36  45  54  63  72  81  90&lt;br /&gt;
  10  20  30  40  50  60  70  80  90 100&lt;br /&gt;
Lentelė 15*15&lt;br /&gt;
   1   2   3   4   5   6   7   8   9  10  11  12  13  14  15&lt;br /&gt;
   2   4   6   8  10  12  14  16  18  20  22  24  26  28  30&lt;br /&gt;
   3   6   9  12  15  18  21  24  27  30  33  36  39  42  45&lt;br /&gt;
   4   8  12  16  20  24  28  32  36  40  44  48  52  56  60&lt;br /&gt;
   5  10  15  20  25  30  35  40  45  50  55  60  65  70  75&lt;br /&gt;
   6  12  18  24  30  36  42  48  54  60  66  72  78  84  90&lt;br /&gt;
   7  14  21  28  35  42  49  56  63  70  77  84  91  98 105&lt;br /&gt;
   8  16  24  32  40  48  56  64  72  80  88  96 104 112 120&lt;br /&gt;
   9  18  27  36  45  54  63  72  81  90  99 108 117 126 135&lt;br /&gt;
  10  20  30  40  50  60  70  80  90 100 110 120 130 140 150&lt;br /&gt;
  11  22  33  44  55  66  77  88  99 110 121 132 143 154 165&lt;br /&gt;
  12  24  36  48  60  72  84  96 108 120 132 144 156 168 180&lt;br /&gt;
  13  26  39  52  65  78  91 104 117 130 143 156 169 182 195&lt;br /&gt;
  14  28  42  56  70  84  98 112 126 140 154 168 182 196 210&lt;br /&gt;
  15  30  45  60  75  90 105 120 135 150 165 180 195 210 225&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;mw-collapsible mw-collapsed wikitable&amp;quot;&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; |Galimas sprendimas &amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
def sandaugos_lentelė(n):&lt;br /&gt;
    print(f&amp;quot;Lentelė {n}*{n}&amp;quot;)&lt;br /&gt;
    for i in range(1, n+1):&lt;br /&gt;
        for j in range(1, n+1):&lt;br /&gt;
            print(f&amp;quot;{i*j:4}&amp;quot;, end=&amp;quot;&amp;quot;)&lt;br /&gt;
        print()&lt;br /&gt;
sandaugos_lentelė(6)&lt;br /&gt;
sandaugos_lentelė(10)&lt;br /&gt;
sandaugos_lentelė(15)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
{{navigation |previous=BEGINNING |next=END}}&lt;/div&gt;</summary>
		<author><name>Eimutis</name></author>
	</entry>
</feed>