by @Fahrur Rozi Fork
{"functions":[],"name":"Hospital","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_7bd49b41_b6b8_464b_acde_83af35133886"},{"@type":"Declare","tpe":"Integer","name":"ditangani","id":"id_c814a716_836d_4036_9fa3_7556dac65a27","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"tditangani","id":"id_874a72ac_c1bf_457c_86bd_694f50a48378","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"dokter","id":"id_787fc8d5_4d6e_4529_a1f0_5d7ace6b9ee1","initValue":"7"},{"@type":"Declare","tpe":"Integer","name":"pasien","id":"id_1827bb79_d25b_4dbc_8213_606e8ed85256","initValue":null},{"@type":"Declare","tpe":"Integer","name":"hari","id":"id_44d3978c_75ef_47b9_aee1_b59f12d983ba","initValue":"0"},{"@type":"Input","name":"hari","id":"id_7b543c82_c3e9_48e5_891f_f5f9da428a82","prompt":"Masukkan jumlah hari"},{"varName":"i","incr":"1","@type":"ForLoop","start":"1","end":"hari","id":"id_0232d49b_bce2_44f5_9e67_193ffc57d57b","body":{"statements":[{"falseBlock":{"statements":[],"id":"id_f402a044_5c14_44b0_8e46_dd5f6fda2e3f"},"trueBlock":{"statements":[{"falseBlock":{"statements":[],"id":"id_94b90f9f_ec88_441a_8a67_ac86d4e05d5c"},"trueBlock":{"statements":[{"@type":"Assign","name":"dokter","id":"id_50dc1f6f_a0b7_48a3_a2bc_6826508b12e0","value":"dokter + 1"}],"id":"id_28be1b56_4f04_4db8_876e_2fd517315111"},"condition":"tditangani > ditangani","@type":"If","id":"id_4417c4f0_777a_48da_a546_c44f37435d50"}],"id":"id_4778987a_8efa_4fe6_b64d_b46ca7b3dd60"},"condition":"i%3==0","@type":"If","id":"id_7cc9dbd0_da83_4305_a8b1_2efe59723cb5"},{"@type":"Input","name":"pasien","id":"id_ac4cb6c2_7600_4edb_a86e_1d503af8381b","prompt":null},{"falseBlock":{"statements":[{"@type":"Assign","name":"ditangani","id":"id_b914ef99_fe78_4b5c_be8e_f3519daf0a90","value":"ditangani + dokter"},{"@type":"Assign","name":"tditangani","id":"id_81bb7d2b_def7_4f55_8428_c75593119b6d","value":"tditangani + (pasien - dokter)"}],"id":"id_3db2eeaa_9798_4246_b5af_693482367853"},"trueBlock":{"statements":[{"@type":"Assign","name":"ditangani","id":"id_9c8f4a4e_e17c_415e_887d_92bf76eb44f8","value":"ditangani + pasien"}],"id":"id_fb9e74b0_c041_4dc5_80bd_7a5dcc7fca86"},"condition":"pasien<=dokter","@type":"If","id":"id_46332309_db74_44b2_9c82_e6f5d1e2fbb5"}],"id":"id_a3fda994_b879_4397_8b79_7a80acddecff"}},{"newline":true,"@type":"Output","id":"id_d6a2a3e0_bd12_4aa0_a66e_41a33cc26296","value":"\"Pasien ditangani : \"+ditangani"},{"newline":true,"@type":"Output","id":"id_e6174fed_e63b_48d5_b68a_3b92ec2fb8ea","value":"\"Pasien tidak ditangani : \" +tditangani"},{"@type":"Return","id":"id_d0fb12fa_bf7b_4829_9897_2fba6f48a334","maybeValue":null}],"parameters":[]},"id":"id_e84444cc_243f_4a70_90d0_a31b93d36799","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"c++","showGenCode":true},"version":"0.2","revision":695}