ostalo
This commit is contained in:
parent
4701d8ac13
commit
103f980c1a
1 changed files with 30 additions and 0 deletions
30
lv3/lv_1_pseudokod.fprg
Normal file
30
lv3/lv_1_pseudokod.fprg
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<?xml version="1.0"?>
|
||||
<flowgorithm fileversion="4.2">
|
||||
<attributes>
|
||||
<attribute name="name" value="lv_1_pseudokod"/>
|
||||
<attribute name="authors" value="student"/>
|
||||
<attribute name="about" value=""/>
|
||||
<attribute name="saved" value="2025-10-10 11:24:24 AM"/>
|
||||
<attribute name="created" value="c3R1ZGVudDtERVNLVE9QLVEyRU1PQU87MjAyNS0xMC0xMDsxMTowOTozMyBBTTszMTE1"/>
|
||||
<attribute name="edited" value="c3R1ZGVudDtERVNLVE9QLVEyRU1PQU87MjAyNS0xMC0xMDsxMToyNDoyNCBBTTsxOzMyMjA="/>
|
||||
</attributes>
|
||||
<function name="Main" type="None" variable="">
|
||||
<parameters/>
|
||||
<body>
|
||||
<declare name="Kilometri" type="Real" array="False" size=""/>
|
||||
<declare name="Potrosnja" type="Real" array="False" size=""/>
|
||||
<declare name="Cijena" type="Real" array="False" size=""/>
|
||||
<declare name="Potroseno" type="Real" array="False" size=""/>
|
||||
<declare name="Ucijena" type="Real" array="False" size=""/>
|
||||
<output expression=""Unesi kilometre: "" newline="True"/>
|
||||
<input variable="Kilometri"/>
|
||||
<output expression=""Unesi potrosnju: "" newline="True"/>
|
||||
<input variable="Potrosnja"/>
|
||||
<output expression=""Unesi cijenu goriva: "" newline="True"/>
|
||||
<input variable="Cijena"/>
|
||||
<assign variable="Potroseno" expression="Kilometri / 100 * Potrosnja"/>
|
||||
<assign variable="Ucijena" expression="Potroseno * Cijena"/>
|
||||
<output expression=""Ukupna potrosnja goriva je: " & Potroseno & ", a ukupna cijena je: " & Ucijena" newline="True"/>
|
||||
</body>
|
||||
</function>
|
||||
</flowgorithm>
|
||||
Loading…
Add table
Add a link
Reference in a new issue