by @Fahrur Rozi Fork
{"functions":[{"rawId":"id_fe16d174_ddf1_4f40_b019_d5bd4fb113e1","tpe":"Integer","name":"lol","statements":[{"@type":"Begin","id":"id_628edde0_38e5_48f5_9e67_464e16395fd6"},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"@type":"Assign","name":"biayaawal","id":"id_989712b4_afec_4553_8166_7692fb4d21af","value":"50000"}],"id":"id_12bfd387_9987_49f5_9b79_f0d806ff1ae9"},"trueBlock":{"statements":[{"@type":"Assign","name":"biayaawal","id":"id_1a3a578f_d0d7_4ece_978d_fef72fa461eb","value":"40000"}],"id":"id_b4f6d627_1034_4c13_8f12_4c64703fcaee"},"condition":"umurp>60","@type":"If","id":"id_3224a092_43dd_4c29_ba65_3e2edb47e549"}],"id":"id_3a703186_1e4d_45fe_91cf_2b9a2b07df74"},"trueBlock":{"statements":[{"@type":"Assign","name":"biayaawal","id":"id_4a0d0441_18b7_4290_87fc_894457e1aaaa","value":"30000"}],"id":"id_dde8059a_0d60_4794_a4ec_23dfc7ed34e4"},"condition":"umurp<5","@type":"If","id":"id_d720c128_cddc_4184_be56_d5061c9338f7"},{"@type":"Return","id":"id_d5e54450_32fb_4b33_9518_2aae5416990a","maybeValue":"0"}],"parameters":[]}],"name":"biaya_masuk","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_aa17be71_32bc_45ef_8060_84ff6b299628"},{"@type":"Declare","tpe":"Integer","name":"biayaawal","id":"id_c9306fda_d821_4917_9a8a_07885e7cde24","initValue":"0"},{"@type":"Declare","tpe":"Real","name":"biayaakhir","id":"id_f1d27dc3_7194_4821_8383_27cbba03993e","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"umurp","id":"id_0e78acd0_cf08_4162_868e_b26892a5b7fb","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"y","id":"id_21507839_026e_44a7_a74a_ee18d5da905b","initValue":"0"},{"@type":"Declare","tpe":"Real","name":"diskon","id":"id_ef1c51c4_4c8d_4a2b_bea0_2e75b8d5e522","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"jumlah","id":"id_937cedfd_4ea5_4734_b033_d7f25356d3d2","initValue":"0"},{"@type":"Input","name":"umurp","id":"id_6ce17e55_d6ae_4178_a34f_cb2a44fb140a","prompt":"Masukkan umur pelanggan : "},{"@type":"Input","name":"jumlahp","id":"id_8ee2f7fa_3e2e_41b8_a9b8_f1fcfe620723","prompt":"Masukkan jumlah pelanggan : "},{"@type":"Call","id":"id_7e17675d_cd10_427a_bb78_ba3a4519d07b","value":"lol()"},{"newline":true,"@type":"Output","id":"id_6b51caf7_48f7_45c9_8a3f_957a777abe11","value":"biayaawal"},{"@type":"Assign","name":"y","id":"id_0313f548_92a9_48ea_a0c4_996220337496","value":"biayaawal*jumlahp"},{"falseBlock":{"statements":[],"id":"id_4117af68_899f_4c07_b6a9_b2b6eb8f3f42"},"trueBlock":{"statements":[{"@type":"Assign","name":"diskon","id":"id_b902ee58_e1f5_4000_aa44_68060f1909ac","value":"y*0.05"}],"id":"id_0e57d1ab_826d_4ad4_81c8_ea9989137e48"},"condition":"jumlahp>5","@type":"If","id":"id_288980f8_0cb6_4b1a_bb86_b3b713474c47"},{"@type":"Assign","name":"biayaakhir","id":"id_c0e1fd59_ded2_482a_ad4c_e6a66ed861b8","value":"y-diskon"},{"newline":true,"@type":"Output","id":"id_48400a12_5ddd_4e74_869c_06943762508b","value":"\"Biaya yang harus dibayarkan adalah sebesar Rp \" + biayaakhir"},{"newline":true,"@type":"Output","id":"id_2b990dc4_86da_48a9_9887_65cc5e4a0e62","value":"\"Berikut adalah rincian dari biaya pembayaran : \""},{"newline":true,"@type":"Output","id":"id_0f10f407_567f_4700_9ef4_feca6379b8dd","value":"\"Biaya masuk awal : Rp \" + y"},{"newline":true,"@type":"Output","id":"id_8ba5c554_cfa8_4218_b654_11d3bcf56c28","value":"\"Diskon : Rp \" + diskon"},{"newline":true,"@type":"Output","id":"id_353c9099_2e84_4b79_845f_e9b29f12e5e2","value":"\"Biaya masuk final : Rp \" +biayaakhir"},{"@type":"Return","id":"id_a2482ded_3cbe_4a90_8749_bf147c0ae280","maybeValue":null}],"parameters":[]},"id":"id_c9468efc_d6df_46a7_9316_91c46d64e299","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"c++","showGenCode":true},"version":"0.2","revision":618}