Upload files to "/"
This commit is contained in:
29
hariTahun.fprg
Normal file
29
hariTahun.fprg
Normal file
@@ -0,0 +1,29 @@
|
||||
<?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=""masukkan total hari"" 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=""tahun:bulan:hari = " & tahun & ":" & bulan & ":" & hari" newline="True"/>
|
||||
</body>
|
||||
</function>
|
||||
</flowgorithm>
|
||||
Reference in New Issue
Block a user