Upload files to "lv3"
This commit is contained in:
parent
103f980c1a
commit
0a94935153
4 changed files with 125 additions and 0 deletions
43
lv3/Lv2_3._pseudokod.fprg
Normal file
43
lv3/Lv2_3._pseudokod.fprg
Normal 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=""Upisi prvi broj: "" newline="True"/>
|
||||
<input variable="L1"/>
|
||||
<output expression=""Upisi drugi broj: "" newline="True"/>
|
||||
<input variable="L2"/>
|
||||
<output expression=""Upisi treci broj: "" newline="True"/>
|
||||
<input variable="L3"/>
|
||||
<output expression=""Upisi cetvrti broj: "" newline="True"/>
|
||||
<input variable="L4"/>
|
||||
<output expression=""Upisi peti broj: "" newline="True"/>
|
||||
<input variable="L5"/>
|
||||
<output expression=""Upisi sesti broj: "" newline="True"/>
|
||||
<input variable="L6"/>
|
||||
<output expression=""Upisi sedmi broj: "" 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
26
lv3/lv 3.fprg
Normal 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=""Opseg pravokutnika iznosi: " & Opseg" newline="True"/>
|
||||
<output expression=""Povrsina pravokutnikia je: " & Povrsina" newline="True"/>
|
||||
</body>
|
||||
</function>
|
||||
</flowgorithm>
|
||||
27
lv3/lv_2_1._preudokod.fprg
Normal file
27
lv3/lv_2_1._preudokod.fprg
Normal 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=""Unesi prvu stranicu: "" newline="True"/>
|
||||
<input variable="a"/>
|
||||
<output expression=""Unesi drugu stanicu: "" newline="True"/>
|
||||
<input variable="b"/>
|
||||
<assign variable="h" expression="sqrt(a*a + b*b)"/>
|
||||
<assign variable="p" expression="a*b /2"/>
|
||||
<output expression=""Hipotenuzu tih dvije stranice je: " & h & ", a povrsina je: " & p" newline="True"/>
|
||||
</body>
|
||||
</function>
|
||||
</flowgorithm>
|
||||
29
lv3/lv_2_2._pseudokod.fprg
Normal file
29
lv3/lv_2_2._pseudokod.fprg
Normal 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=""Unesi prvu stranicu: "" newline="True"/>
|
||||
<input variable="a"/>
|
||||
<output expression=""Unesi drugu stranicu: "" newline="True"/>
|
||||
<input variable="b"/>
|
||||
<output expression=""Unesi trecu stranicu: "" 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue