by @Nicholas Noverhino Fork
{"functions":[],"name":"TUGAS ALPRO","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_5a05cadf_96c4_4433_a1c0_5924e7ec2b01"},{"@type":"Declare","tpe":"String","name":"x","id":"id_e0111dab_f0c4_43f7_abf2_18271ad51fc5","initValue":null},{"@type":"Input","name":"x","id":"id_5bf8ff87_1d97_44e7_a049_da322f2793ef","prompt":"Pesan? :"},{"@type":"Declare","tpe":"String","name":"y","id":"id_a142cc31_65a4_4351_92b7_9d22dc69b5ad","initValue":"\"\""},{"@type":"Declare","tpe":"Integer","name":"n","id":"id_8addc20b_f714_4f8c_b7a1_99ae1680894f","initValue":"length(x)"},{"varName":"i","incr":"1","@type":"ForLoop","start":"0","end":"n-1","id":"id_c46166ae_7d6b_4121_95c0_0d0ac9258c86","body":{"statements":[{"falseBlock":{"statements":[{"@type":"Assign","name":"y","id":"id_cba419d4_b1b4_4dea_83b2_b5faf56c14e1","value":"y + charAt(x,i)"}],"id":"id_a12ddb72_fad1_4252_952e_2ffb19789e4d"},"trueBlock":{"statements":[],"id":"id_a70374c7_9098_4d4c_816a_2ec62c9be2a7"},"condition":"charAt(x,i) == \" \"","@type":"If","id":"id_e609aeed_2ced_43f1_8731_08194eca0814"}],"id":"id_4baea2d0_e45b_474f_b106_ce5424a2b615"}},{"newline":true,"@type":"Output","id":"id_eef54fce_e3d1_43a0_8b84_038038688f24","value":"\"Kalimat setelah dihilangkan spasi = \"+y"},{"newline":true,"@type":"Output","id":"id_4dbcb3db_19ae_4b91_a347_ea88eb884691","value":"\"Banyak karakter pada pesan tanpa spasi = \"+length(y)"},{"@type":"Declare","tpe":"Integer","name":"a","id":"id_a29e836c_4701_4ffc_bdeb_7c31db84257f","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"b","id":"id_913a3062_68e0_4376_8cc0_872ed439a6bf","initValue":"0"},{"condition":"a*b < length(y)","@type":"While","id":"id_1a8482c4_6c29_4752_89c1_4061a527bec1","body":{"statements":[{"@type":"Assign","name":"a","id":"id_848d8733_642c_40c3_980c_b94a962faa9e","value":"a+1"},{"falseBlock":{"statements":[],"id":"id_1c20ae7f_114a_470e_82d4_da4b64df1bcf"},"trueBlock":{"statements":[{"@type":"Assign","name":"b","id":"id_1b16918b_ef7d_4ebc_9191_81df2ce21b30","value":"b + 1"}],"id":"id_f5c126d1_8031_4fb6_8290_fe91d6a72d35"},"condition":"a*b < length(y)","@type":"If","id":"id_f14ea436_6aa4_4fa8_9a68_289b7c48b2b7"}],"id":"id_7653e7c3_61e1_4a3e_85d6_72bbcf4737ac"}},{"newline":true,"@type":"Output","id":"id_290cb7cf_fa1a_45cb_99d5_e22fdbe4f699","value":"\"Banyaknya Baris = \"+a"},{"newline":false,"@type":"Output","id":"id_3013dfe5_e1f3_43cf_9b6d_85f3a2436457","value":"\"Banyaknya kolom = \"+b"},{"newline":true,"@type":"Output","id":"id_d4b429ed_c7b8_4362_ba60_37057b1caa45","value":"\"\""},{"newline":true,"@type":"Output","id":"id_bcd1ddb4_d261_4ddd_9f43_6b2e2a3889a9","value":"\"\""},{"newline":true,"@type":"Output","id":"id_5dda2fb7_ab3c_49b2_9b99_5faae72c2f1f","value":"\"Matriks : \""},{"varName":"i","incr":"1","@type":"ForLoop","start":"0","end":"length(y)-1","id":"id_474ca0cf_7904_4309_b039_5032091dd69c","body":{"statements":[{"falseBlock":{"statements":[],"id":"id_3e758780_4105_4540_aa2e_0b8cd84c32a4"},"trueBlock":{"statements":[{"falseBlock":{"statements":[],"id":"id_dc385a7e_9ee9_4624_b8c5_ce357b6158b4"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_677c869e_1915_49e6_8f59_e5ade60945c3","value":"\"\""}],"id":"id_240d04bf_424d_4d0c_9fb2_124046c6cb54"},"condition":"i != 0","@type":"If","id":"id_b9e2b4e0_887c_4404_a622_3122f0c6e039"}],"id":"id_7ca1771b_488c_4f3d_9b7a_e4dd1334945c"},"condition":"i % b == 0","@type":"If","id":"id_7f678093_7ddb_4916_882c_d0dfcfe0a268"},{"falseBlock":{"statements":[{"varName":"j","incr":"1","@type":"ForLoop","start":"i","end":"i","id":"id_1a6736f4_57b1_4793_b37b_d6c6403a18bf","body":{"statements":[{"newline":false,"@type":"Output","id":"id_0cf4494b_0992_4b04_910a_29d7b1767eeb","value":"charAt(y,j)"}],"id":"id_c1a9214a_1c22_49c0_aa8a_4a49a29d0c71"}}],"id":"id_19adcf90_2db4_450a_9ee2_a77fce08db4c"},"trueBlock":{"statements":[{"newline":false,"@type":"Output","id":"id_70922ea2_8c7f_4ed6_80e3_4ba0f7c683a1","value":"charAt(y,i)"}],"id":"id_09b81567_5f63_462c_a8fe_99233719524c"},"condition":"i % a == 0","@type":"If","id":"id_857d1af7_2883_49d4_bdd5_99259d401595"}],"id":"id_3cecee44_2ca6_459a_bbba_66b0d8949ef8"}},{"newline":true,"@type":"Output","id":"id_0a15f0d6_dc15_451f_9d74_e7b090ec73dc","value":"\"\""},{"newline":false,"@type":"Output","id":"id_c9b9580a_3ca9_4715_a9ee_49746cdf747d","value":"\"Pesan Tersembunyi : \""},{"varName":"i","incr":"1","@type":"ForLoop","start":"0","end":"b-1","id":"id_cc75f082_4f93_490b_adbf_8d2b8bd0763c","body":{"statements":[{"newline":false,"@type":"Output","id":"id_3d1a9900_2ef7_46d7_a52a_c7c426324242","value":"\" \""},{"varName":"j","incr":"b","@type":"ForLoop","start":"i","end":"length(y)-1","id":"id_beaf83ea_803c_4781_b7e2_5f42019dec2b","body":{"statements":[{"newline":false,"@type":"Output","id":"id_da328824_5eff_4670_92f3_d47bd4b700a3","value":"charAt(y,j)"}],"id":"id_d69a9d27_f04b_402a_8a72_e9317103e852"}}],"id":"id_eb2f90a6_270d_4219_b764_ea83136eecff"}},{"@type":"Return","id":"id_e721d749_ca5d_4671_a793_a21d6349328c","maybeValue":null}],"parameters":[]},"id":"id_71e01f32_9000_4fbb_b5f6_440258c52d14","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"c++","showGenCode":true},"version":"0.2","revision":2824}