by @tyas sekar Fork
{"functions":[],"name":"Tabungan Ulang Tahun","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_b4ab8eb2_7be4_49c3_8737_a119ffd8c734"},{"@type":"Declare","tpe":"Integer","name":"totaltabungan","id":"id_b0e06d76_b72d_465d_a419_d2b1460c65ca","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"uanggenap","id":"id_d1f53a10_0cdc_4a18_84e7_2bdff5f3ef28","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"N","id":"id_08f9b821_94c1_40f0_be77_7c0f31cfe773","initValue":null},{"@type":"Declare","tpe":"Integer","name":"X","id":"id_1b2783c6_6c08_41a3_9db0_0ce73d19f0db","initValue":null},{"@type":"Declare","tpe":"Integer","name":"P","id":"id_707dfe08_3962_4dbc_bdc1_2f4eaecce189","initValue":null},{"@type":"Input","name":"N","id":"id_3b9c6ff7_07ac_4a92_bf9b_20c8c5ac5829","prompt":"usia Lilly"},{"@type":"Input","name":"X","id":"id_1429fff5_9783_4e40_91db_17e62f80fd58","prompt":"harga mesin cuci"},{"@type":"Input","name":"P","id":"id_ebb23560_bd30_4070_b67c_993a6a85fee9","prompt":"harga satu mainan"},{"varName":"i","incr":"1","@type":"ForLoop","start":"1","end":"N","id":"id_229564a2_3f89_4eac_876d_a9baec406725","body":{"statements":[{"falseBlock":{"statements":[{"@type":"Assign","name":"totaltabungan","id":"id_88abf22e_05a3_48b8_88f1_ffdac3f3cd56","value":"totaltabungan+P"}],"id":"id_61ffba5a_793d_404c_a34f_7438db560c64"},"trueBlock":{"statements":[{"@type":"Assign","name":"uanggenap","id":"id_371be313_9c3f_4fb5_8bcd_6c6ca8d9d36d","value":"uanggenap+10"},{"@type":"Assign","name":"totaltabungan","id":"id_c5964e40_f723_4daa_8a47_90de6939e1e7","value":"totaltabungan+uanggenap"},{"@type":"Assign","name":"totaltabungan","id":"id_5780f92f_8831_46f0_8ada_6ccf6caa91f6","value":"totaltabungan-1"}],"id":"id_d2dccb71_a1b5_4fe9_9cb4_3d45e8215159"},"condition":"i % 2 == 0","@type":"If","id":"id_8c6065ba_0aa1_4ff0_9d3d_30f65cf425af"}],"id":"id_55080525_5cdd_4b4e_ae1f_942edf5a2737"}},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_4262912e_60c4_4634_b024_36f6384c4d56","value":"\"NO! kurang = \"+(X+totaltabungan)"}],"id":"id_b6c5a78f_9f44_41ce_8cf8_97620eaa7547"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_ee77f6eb_6257_43d4_8fa4_5cdae99f3f81","value":"\"YES! sisa = \"+(totaltabungan-X)"}],"id":"id_e554361b_4771_4afc_95dd_bf742087e6b4"},"condition":"totaltabungan>=X","@type":"If","id":"id_1f13814f_bc76_4851_9209_4178f3f95681"},{"@type":"Return","id":"id_f867628d_82bf_4d73_8096_3bccfd33e63a","maybeValue":null}],"parameters":[]},"id":"id_fe2646b1_9fb6_4750_80be_174e0979e02a","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"c++","showGenCode":true},"version":"0.2","revision":862}