Upload files to "lv3"

This commit is contained in:
marin 2025-10-10 14:13:09 +02:00
parent 103f980c1a
commit 0a94935153
4 changed files with 125 additions and 0 deletions

43
lv3/Lv2_3._pseudokod.fprg Normal file
View file

@ -0,0 +1,43 @@
<?xml version="1.0"?>
<flowgorithm fileversion="4.2">
<attributes>
<attribute name="name" value="Lv2_2._pseudokod"/>
<attribute name="authors" value="student"/>
<attribute name="about" value=""/>
<attribute name="saved" value="2025-10-10 12:02:11 PM"/>
<attribute name="created" value="c3R1ZGVudDtERVNLVE9QLVEyRU1PQU87MjAyNS0xMC0xMDsxMTozNzo1MSBBTTszMTE2"/>
<attribute name="edited" value="c3R1ZGVudDtERVNLVE9QLVEyRU1PQU87MjAyNS0xMC0xMDsxMjowMjoxMSBQTTsxOzMyMjg="/>
</attributes>
<function name="Main" type="None" variable="">
<parameters/>
<body>
<declare name="L1" type="Real" array="False" size=""/>
<declare name="L2" type="Real" array="False" size=""/>
<declare name="L3" type="Real" array="False" size=""/>
<declare name="L4" type="Real" array="False" size=""/>
<declare name="L5" type="Real" array="False" size=""/>
<declare name="L6" type="Real" array="False" size=""/>
<declare name="L7" type="Real" array="False" size=""/>
<declare name="sum" type="Real" array="False" size=""/>
<declare name="sum2" type="Real" array="False" size=""/>
<output expression="&quot;Upisi prvi broj: &quot;" newline="True"/>
<input variable="L1"/>
<output expression="&quot;Upisi drugi broj: &quot;" newline="True"/>
<input variable="L2"/>
<output expression="&quot;Upisi treci broj: &quot;" newline="True"/>
<input variable="L3"/>
<output expression="&quot;Upisi cetvrti broj: &quot;" newline="True"/>
<input variable="L4"/>
<output expression="&quot;Upisi peti broj: &quot;" newline="True"/>
<input variable="L5"/>
<output expression="&quot;Upisi sesti broj: &quot;" newline="True"/>
<input variable="L6"/>
<output expression="&quot;Upisi sedmi broj: &quot;" newline="True"/>
<input variable="L7"/>
<assign variable="sum" expression="(L1%10)*100000+(L2%10)*10000+(L3%10)*1000+(L4%10)*100+(L5%10)*10+L6%10"/>
<output expression="sum%101" newline="True"/>
<assign variable="sum2" expression="(L1%10)+(L2%10)+(L3%10)+(L4%10)+(L5%10)+(L6%10)"/>
<output expression="sum2" newline="True"/>
</body>
</function>
</flowgorithm>

26
lv3/lv 3.fprg Normal file
View file

@ -0,0 +1,26 @@
<?xml version="1.0"?>
<flowgorithm fileversion="4.2">
<attributes>
<attribute name="name" value="lv 3"/>
<attribute name="authors" value="student"/>
<attribute name="about" value=""/>
<attribute name="saved" value="2025-10-10 11:08:03 AM"/>
<attribute name="created" value="c3R1ZGVudDtERVNLVE9QLVEyRU1PQU87MjAyNS0xMC0xMDsxMDo1NTo1MiBBTTszMTE2"/>
<attribute name="edited" value="c3R1ZGVudDtERVNLVE9QLVEyRU1PQU87MjAyNS0xMC0xMDsxMTowODowMyBBTTsxOzMyMTk="/>
</attributes>
<function name="Main" type="None" variable="">
<parameters/>
<body>
<declare name="a" type="Real" array="False" size=""/>
<declare name="b" type="Real" array="False" size=""/>
<declare name="Povrsina" type="Real" array="False" size=""/>
<declare name="Opseg" type="Real" array="False" size=""/>
<input variable="a"/>
<input variable="b"/>
<assign variable="Opseg" expression="2*a+2*b"/>
<assign variable="Povrsina" expression="a*b"/>
<output expression="&quot;Opseg pravokutnika iznosi: &quot; &amp; Opseg" newline="True"/>
<output expression="&quot;Povrsina pravokutnikia je: &quot; &amp; Povrsina" newline="True"/>
</body>
</function>
</flowgorithm>

View file

@ -0,0 +1,27 @@
<?xml version="1.0"?>
<flowgorithm fileversion="4.2">
<attributes>
<attribute name="name" value="lv_2_1._preudokod"/>
<attribute name="authors" value="student"/>
<attribute name="about" value=""/>
<attribute name="saved" value="2025-10-10 11:30:22 AM"/>
<attribute name="created" value="c3R1ZGVudDtERVNLVE9QLVEyRU1PQU87MjAyNS0xMC0xMDsxMToyNDoyOSBBTTszMTE3"/>
<attribute name="edited" value="c3R1ZGVudDtERVNLVE9QLVEyRU1PQU87MjAyNS0xMC0xMDsxMTozMDoyMiBBTTsxOzMyMTU="/>
</attributes>
<function name="Main" type="None" variable="">
<parameters/>
<body>
<declare name="a" type="Real" array="False" size=""/>
<declare name="b" type="Integer" array="False" size=""/>
<declare name="h" type="Real" array="False" size=""/>
<declare name="p" type="Integer" array="False" size=""/>
<output expression="&quot;Unesi prvu stranicu: &quot;" newline="True"/>
<input variable="a"/>
<output expression="&quot;Unesi drugu stanicu: &quot;" newline="True"/>
<input variable="b"/>
<assign variable="h" expression="sqrt(a*a + b*b)"/>
<assign variable="p" expression="a*b /2"/>
<output expression="&quot;Hipotenuzu tih dvije stranice je: &quot; &amp; h &amp; &quot;, a povrsina je: &quot; &amp; p" newline="True"/>
</body>
</function>
</flowgorithm>

View file

@ -0,0 +1,29 @@
<?xml version="1.0"?>
<flowgorithm fileversion="4.2">
<attributes>
<attribute name="name" value="lv_2_2._pseudokod"/>
<attribute name="authors" value="student"/>
<attribute name="about" value=""/>
<attribute name="saved" value="2025-10-10 11:37:24 AM"/>
<attribute name="created" value="c3R1ZGVudDtERVNLVE9QLVEyRU1PQU87MjAyNS0xMC0xMDsxMTozMDoyNSBBTTszMTEw"/>
<attribute name="edited" value="c3R1ZGVudDtERVNLVE9QLVEyRU1PQU87MjAyNS0xMC0xMDsxMTozNzoyNCBBTTsxOzMyMjQ="/>
</attributes>
<function name="Main" type="None" variable="">
<parameters/>
<body>
<declare name="s" type="Real" array="False" size=""/>
<declare name="a" type="Real" array="False" size=""/>
<declare name="b" type="Real" array="False" size=""/>
<declare name="c" type="Real" array="False" size=""/>
<declare name="p" type="Real" array="False" size=""/>
<output expression="&quot;Unesi prvu stranicu: &quot;" newline="True"/>
<input variable="a"/>
<output expression="&quot;Unesi drugu stranicu: &quot;" newline="True"/>
<input variable="b"/>
<output expression="&quot;Unesi trecu stranicu: &quot;" newline="True"/>
<input variable="c"/>
<assign variable="s" expression="(a+b+c) / 2"/>
<assign variable="p" expression="sqrt(s *(s-a)*(s-b)*(s-c))"/>
</body>
</function>
</flowgorithm>