by @Fahrur Rozi Fork
{"functions":[],"name":"Ulang Tahun Lily","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_23ba8017_10e4_467d_81ae_a429ea76ebaf"},{"@type":"Declare","tpe":"Integer","name":"N","id":"id_477a7897_1154_4255_8af5_65728187fcde","initValue":null},{"@type":"Declare","tpe":"Integer","name":"X","id":"id_763d2953_3d8d_4830_9a89_75d0d76510ca","initValue":null},{"@type":"Declare","tpe":"Integer","name":"P","id":"id_d6aff021_c932_4da5_bd03_ef27831fa336","initValue":null},{"@type":"Declare","tpe":"Integer","name":"a","id":"id_f673f859_e97f_470d_a111_efd9801d64a6","initValue":"0"},{"@type":"Input","name":"N","id":"id_4a36535f_7f21_4c2f_81a5_0e3795d7b849","prompt":"Masukkan umur Lily"},{"@type":"Input","name":"X","id":"id_8c6e1c6d_9de5_49c2_b144_a023b304327f","prompt":"Masukkan harga mesin cuci"},{"@type":"Input","name":"P","id":"id_994e72d7_d876_4b7f_849f_f17a47bb1e54","prompt":"Masukkan Harga mainan"},{"@type":"Declare","tpe":"Integer","name":"Tabungan","id":"id_ececdf75_ceb9_42a5_a518_7037dcd7b923","initValue":"0"},{"varName":"i","incr":"1","@type":"ForLoop","start":"1","end":"N","id":"id_fc15113f_c740_4f0a_b542_a0de1f3d7a4a","body":{"statements":[{"falseBlock":{"statements":[{"@type":"Assign","name":"Tabungan","id":"id_45001327_f4c9_4136_a4b5_348aa1295b0b","value":"Tabungan + P"}],"id":"id_5c04705e_dc14_4c26_8d55_0b0f581b799b"},"trueBlock":{"statements":[{"@type":"Assign","name":"a","id":"id_40275d90_7400_4b1b_a8b4_913b28e51e1b","value":"a+10"},{"@type":"Assign","name":"Tabungan","id":"id_08186ddf_dfc6_4065_ab9d_30cee6aa123e","value":"Tabungan + (a-1)"}],"id":"id_9fea6d67_0897_48af_9c47_854da5e9dd52"},"condition":"i%2 == 0","@type":"If","id":"id_3e85ba86_8a16_4a86_a572_a2474cc80fd8"}],"id":"id_ea98f21b_f5de_4bf3_820e_d6e4c2c93127"}},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_c05d6460_e9e1_4a65_9b7d_87f503ef8b92","value":"\"NO! \" + (X-Tabungan)"}],"id":"id_4eebb170_1560_474e_9141_8bebd6a63926"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_f5b96893_d372_4a2a_a934_dd041528c2fe","value":"\"YES! \" + (Tabungan - X)"}],"id":"id_16af389d_9883_406b_a338_c7247a72a65a"},"condition":"Tabungan >= X","@type":"If","id":"id_cb9ec0b0_6d31_46cc_9618_3f7c5bdc596e"},{"@type":"Return","id":"id_3a275951_d82d_4dca_a900_c3b3eaa25ef8","maybeValue":null}],"parameters":[]},"id":"id_4d96daea_61f0_4bf3_8212_3cc66a49e043","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"java","showGenCode":true},"version":"0.2","revision":321}