Files
flowgorithm/hariTahun.fprg
2026-02-12 08:04:40 +00:00

30 lines
1.6 KiB
XML

<?xml version="1.0"?>
<flowgorithm fileversion="4.2">
<attributes>
<attribute name="name" value="a"/>
<attribute name="authors" value="yuvlian"/>
<attribute name="about" value=""/>
<attribute name="saved" value="2026-02-12 08:56:42 AM"/>
<attribute name="created" value="eXV2bGlhbjtQQU5DQUtFOzIwMjYtMDItMTI7MDc6MTg6MDkgQU07MjU0NA=="/>
<attribute name="edited" value="eXV2bGlhbjtQQU5DQUtFOzIwMjYtMDItMTI7MDg6NTY6NDIgQU07NTsyNjU2"/>
</attributes>
<function name="Main" type="None" variable="">
<parameters/>
<body>
<output expression="&quot;masukkan total hari&quot;" newline="True"/>
<declare name="totalHari" type="Integer" array="False" size=""/>
<input variable="totalHari"/>
<declare name="sisaHari" type="Integer" array="False" size=""/>
<declare name="hari" type="Integer" array="False" size=""/>
<declare name="bulan" type="Integer" array="False" size=""/>
<declare name="tahun" type="Integer" array="False" size=""/>
<comment text="kalkulasi naif, g semua tahun 365 hari dan ga semua bulan 30 hari, but is okei utk simplicity"/>
<assign variable="tahun" expression="totalHari/365"/>
<assign variable="sisaHari" expression="totalHari%365"/>
<assign variable="bulan" expression="sisaHari/30"/>
<assign variable="hari" expression="sisaHari%30"/>
<output expression="&quot;tahun:bulan:hari = &quot; &amp; tahun &amp; &quot;:&quot; &amp; bulan &amp; &quot;:&quot; &amp; hari" newline="True"/>
</body>
</function>
</flowgorithm>