{"functions":[],"name":"Contoh","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_03d48c99_b601_4008_8404_221a288adf53"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"jumlahproduk","lengthValue2":"5","id":"id_b9bbc00b_6c91_4eb0_8433_00e5dac3ff6a","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"totalpendapatan","lengthValue2":"5","id":"id_d27c7cdc_83b9_4d79_8fb9_c792137ad283","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"totalbarang","lengthValue2":"5","id":"id_c714d738_76da_444c_bf4b_bf00b3b0fe6f","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"String","name":"namaproduk","lengthValue2":"5","id":"id_47aafbcb_2e26_456d_b34b_2e20ba290168","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"harga","lengthValue2":"5","id":"id_17d62436_0c78_4231_9516_3effbe1350fb","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"jumlahterjual","lengthValue2":"5","id":"id_d4c25da3_e027_4e63_a043_98ad3d6a1526","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"subtotal","lengthValue2":"5","id":"id_b522bb33_ba17_46d8_bd6a_135aeb147994","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"rataRata","lengthValue2":"5","id":"id_7246975f_83d0_48fe_9ed6_afcf091f0ee5","initValue":null},{"@type":"Input","name":"jumlahproduk","id":"id_22e36a93_e694_4356_a9b7_8034308cf700","prompt":"Masukkan jumlah produk: "},{"@type":"Assign","name":"totalpendapatan","id":"id_8a006d35_76dc_48b6_95a7_908598431fbf","value":"0"},{"@type":"Assign","name":"totalbarang","id":"id_380f5452_9d22_4120_8ebd_b41c4f1bf646","value":"0"},{"varName":"i","incr":"1","@type":"ForLoop","start":"1","end":"jumlahproduk","id":"id_010267e4_6435_4690_9992_310da6042be6","body":{"statements":[{"@type":"Input","name":"namaproduk","id":"id_3b6ed29b_3333_4261_9151_95a05fcd415a","prompt":"Masukkan nama produk: "},{"@type":"Input","name":"harga","id":"id_02b9fc47_e8fd_4854_b4d1_a7f8ad660b86","prompt":"Harga: "},{"@type":"Input","name":"jumlahterjual","id":"id_8e72ec53_bf6c_479a_b36f_ad185f2f6c1f","prompt":"Jumlah Terjual: "},{"@type":"Assign","name":"subtotal","id":"id_ff8e4a72_6967_44cf_b04b_429686bde494","value":"harga*jumlahterjual"},{"@type":"Assign","name":"totalpendapatan","id":"id_cbd9da0f_03ee_4fb7_942d_aad24df9fe30","value":"totalpendapatan+subtotal"},{"@type":"Assign","name":"totalbarang","id":"id_6a670eae_411b_4c9d_b51f_89ecdc506b75","value":"totalbarang+jumlahterjual"},{"newline":true,"@type":"Output","id":"id_a78d01a2_6788_4827_a36e_09ab20443fd0","value":"\"Nama Produk: \"+namaproduk"},{"newline":true,"@type":"Output","id":"id_a80537dd_f2cd_4781_9abb_11f0d62cea55","value":"\"Subtotal: \"+subtotal"}],"id":"id_ba64188c_0a60_40a1_8a33_771e2434421d"}},{"@type":"Assign","name":"rataRata","id":"id_d6176111_c43d_4c03_8205_1480a0253399","value":"totalpendapatan/jumlahproduk"},{"newline":true,"@type":"Output","id":"id_9f3eb83b_4256_444f_973a_f4d1b71c5384","value":"\"Total pendapatan: \"+\"Rp \"+totalpendapatan"},{"newline":true,"@type":"Output","id":"id_b1c01482_4f2b_4feb_9c77_246c322207d2","value":"\"Total barang: \"+totalbarang"},{"newline":true,"@type":"Output","id":"id_4198255c_3a7b_43e0_b255_28bf2c094a51","value":"\"Rata rata: \"+\"Rp \"+rataRata"},{"@type":"Return","id":"id_f9037e9e_1100_493d_9aaf_d0893ff15dae","maybeValue":null}],"parameters":[]},"id":"id_457c245e_a46e_4841_a4c2_babf48d7bf53","config":{"showDebugVars":true,"useInputPrompt":true,"echoEnteredValue":true,"showIoBtns":true,"showFunctions":false,"lang":"c++","showGenCode":true},"version":"0.3","revision":1270}