by @Fahrur Rozi Fork
{"functions":[],"name":"PERAH","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_15dd3b78_8346_4c17_acc8_a854923b2790"},{"@type":"Declare","tpe":"String","name":"x","id":"id_b9229eeb_f3f0_4e3e_a6f8_0bd6fa263185","initValue":null},{"@type":"Input","name":"x","id":"id_98643337_397c_46cf_92f3_a034cf16499a","prompt":"PERAH(PEsan RAHsia) >> "},{"@type":"Declare","tpe":"Integer","name":"n","id":"id_2c526f30_11fc_4672_a09a_4554db2e706f","initValue":"length(x)"},{"@type":"Declare","tpe":"String","name":"y","id":"id_7d989024_d6ac_429f_b9ae_1c8e6772082c","initValue":"\"\""},{"newline":true,"@type":"Output","id":"id_6d5880d0_2968_45a3_8508_93d027b831f7","value":"\"Banyak karakter dalam kalimat dengan spasi= \" + n"},{"varName":"i","incr":"1","@type":"ForLoop","start":"0","end":"n-1","id":"id_484d1f6c_c191_416f_8358_b49cc4944e27","body":{"statements":[{"falseBlock":{"statements":[{"@type":"Assign","name":"y","id":"id_7967d4e1_8d89_4716_8473_49467fdfa8b7","value":"y + charAt(x, i)"}],"id":"id_ea9f482c_b733_4d68_9445_a12167b757b2"},"trueBlock":{"statements":[],"id":"id_d25a6e8f_14f2_41d5_bfe6_600a8e58679e"},"condition":"charAt(x,i)==\" \"","@type":"If","id":"id_27b2dde5_fe79_43be_ac63_ea2955e08150"}],"id":"id_fac6ce45_c0cd_425c_be2c_1287c49a9e9e"}},{"newline":true,"@type":"Output","id":"id_b3e2e809_dee0_4e85_a2d9_c0e035d0a5e5","value":"\"Kalimat tanpa spasi= \" + y"},{"@type":"Declare","tpe":"Integer","name":"m","id":"id_79b2308b_8587_46ab_9dda_100a35318374","initValue":"length(y)"},{"newline":true,"@type":"Output","id":"id_6236002b_d801_412a_adb1_c8b10e0234ce","value":"\"Banyak karakter dalam kalimat tanpa spasi= \" + m"},{"@type":"Declare","tpe":"Integer","name":"a","id":"id_45e8fb9d_cc21_42b6_a285_c6563a0e7246","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"b","id":"id_a2834338_e6c5_45b0_89cd_e87712be1ac9","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"perulangan","id":"id_d0bd17ff_0b70_4b86_a905_92571b5edeb6","initValue":"1"},{"condition":"a*b<m","@type":"While","id":"id_badb00d5_e543_4ce4_8567_ccf6299242e1","body":{"statements":[{"falseBlock":{"statements":[{"@type":"Assign","name":"a","id":"id_dad5f3e7_2afe_45dc_9db7_724e270ebe7c","value":"a + 1"}],"id":"id_aa7f8d58_d0fa_4a3e_8e9c_f1e01bee62f3"},"trueBlock":{"statements":[{"@type":"Assign","name":"b","id":"id_ab4e19bf_b1de_405b_9e7b_ed55bfade979","value":"b + 1"}],"id":"id_e27cad5d_e33b_4511_9b8d_5f3975e25f6f"},"condition":"perulangan % 2 == 0","@type":"If","id":"id_1bdbd5f8_2906_4b79_bb29_a6e001d19f41"},{"@type":"Assign","name":"perulangan","id":"id_a568428e_9133_457f_a894_20934079960d","value":"perulangan + 1"}],"id":"id_e8174727_1a34_4978_9c1d_3418a0902b68"}},{"newline":true,"@type":"Output","id":"id_c1e14153_357e_41c2_bdf9_a95151618d05","value":"\"Banyak baris= \" + a"},{"newline":true,"@type":"Output","id":"id_80f4023b_5244_431b_a3a2_0fa249ab7218","value":"\"Banyak kolom= \" + b"},{"newline":true,"@type":"Output","id":"id_afa52a45_d393_4d36_8f1f_a8b6b1a5a7b6","value":"\"Matriks:\""},{"varName":"i","incr":"1","@type":"ForLoop","start":"1","end":"m+1","id":"id_14f1bb4e_961e_48c5_866c_36793cd3213d","body":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_f079625c_3f12_4119_abc4_f7f3664f5267","value":"charAt(y, i-1)"}],"id":"id_162d1985_3f2a_4927_939b_de3327e1b73c"},"trueBlock":{"statements":[{"newline":false,"@type":"Output","id":"id_bfe30990_465f_4916_bb56_eecdcc988bf7","value":"charAt(y, i-1)"}],"id":"id_6bb68b5d_2ec9_4786_855a_26b07538c686"},"condition":"i % b != 0","@type":"If","id":"id_e3f29700_1ff7_4919_8b62_bb5b0db48cb9"}],"id":"id_6d173af4_5efe_460a_9261_507e0ea0d602"}},{"newline":true,"@type":"Output","id":"id_fd604ae3_0b13_49f5_9bcb_9a6656de7441","value":"\" \""},{"newline":true,"@type":"Output","id":"id_b10e948c_c4bf_45b1_adca_e5b6cffd0d61","value":"\"PERAH:\""},{"varName":"i","incr":"1","@type":"ForLoop","start":"0","end":"b-1","id":"id_76c041ca_c487_4e65_9642_344140842fb1","body":{"statements":[{"varName":"j","incr":"b","@type":"ForLoop","start":"i","end":"m-1","id":"id_a15aeb9b_b493_4a8c_8d2c_f331deef7ebb","body":{"statements":[{"newline":false,"@type":"Output","id":"id_269970bb_727f_4e77_b23d_b4452430122a","value":"charAt(y, j)"}],"id":"id_03022892_2790_4642_8a72_86d52d4a25e3"}},{"newline":false,"@type":"Output","id":"id_53ca0090_67eb_406d_9cc4_715b19eb7b8d","value":"\" \""}],"id":"id_6fb2eaf0_5c76_4247_88df_828f3dd5557e"}},{"@type":"Return","id":"id_24986f49_7b08_446e_b0b3_ada5e51df3cf","maybeValue":null}],"parameters":[]},"id":"id_32c6555d_371e_479a_9a3c_bb13e8cd0b66","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"python","showGenCode":true},"version":"0.2","revision":1985}