by @stud. Karim Yachou Fork
{"functions":[],"name":"New Program","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_b9bbce26_04ac_41d8_a15b_65b86f02a982"},{"@type":"Declare","tpe":"Integer","name":"tot","id":"id_d2a20829_fcbe_49e2_bd8d_70bcc47fdd21","initValue":null},{"@type":"Declare","tpe":"Integer","name":"p","id":"id_c3015c89_6a83_48ff_be85_e66add2b22b4","initValue":null},{"@type":"Declare","tpe":"Integer","name":"q","id":"id_4123c6fa_edf1_4395_ba7c_cc7ba1f266e0","initValue":null},{"@type":"Declare","tpe":"Integer","name":"s","id":"id_c06c9283_8423_4aa2_96ab_ccd344030650","initValue":null},{"@type":"Declare","tpe":"Integer","name":"sc","id":"id_8d2116f0_c1f3_40bf_a3c8_fc5a9db1ea84","initValue":null},{"newline":true,"@type":"Output","id":"id_9022fa51_04bd_4515_888a_ce40f241be04","value":"\"totale\""},{"@type":"Input","name":"tot","id":"id_1ef3d3ee_e333_465e_b413_f56d0dff548f","prompt":null},{"newline":true,"@type":"Output","id":"id_ce6cbd67_a08c_447b_a34c_7d2a5cd93223","value":"\"dammi prezzo\""},{"@type":"Input","name":"p","id":"id_174180fd_c0a1_4d9d_bd7f_460a713723d9","prompt":null},{"newline":true,"@type":"Output","id":"id_8135ade8_8b8d_4639_b0cb_8c612aaa6ff3","value":"\"dammi la quantità\""},{"@type":"Input","name":"q","id":"id_88e15522_7e12_4d09_967c_5046ac107e2c","prompt":null},{"newline":true,"@type":"Output","id":"id_023c7257_7682_435d_99a2_7254ba7b1c23","value":"\"dammi spesa\""},{"@type":"Input","name":"s","id":"id_c0e42c96_aeb1_4301_bd7a_de65630563b2","prompt":null},{"@type":"Assign","name":"tot","id":"id_ee67b347_fb2a_4e0e_a711_c89805904970","value":"p*q"},{"newline":true,"@type":"Output","id":"id_e6223fcb_4ad7_4c96_abe7_76457e545cea","value":"\"dammi sconto \""},{"@type":"Input","name":"sc","id":"id_6a34d3e8_7b1d_4214_ba97_2d2ac86ab570","prompt":null},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_d3189c0a_06ec_4bdb_b4c3_cacceda257f1","value":"\"si sconto\""},{"falseBlock":{"statements":[],"id":"id_c0e79a18_5885_4283_a49d_3e88e1a06048"},"trueBlock":{"statements":[{"@type":"Assign","name":"sc","id":"id_705db2e5_32dc_458b_830e_7afb794d1548","value":"5*p/100"},{"@type":"Assign","name":"tot","id":"id_20d1451a_854f_48b0_a7c3_ef6ee5e4fab4","value":"p-sc"},{"newline":true,"@type":"Output","id":"id_c3054ec5_0a81_458e_af42_4a2f6fe779bf","value":"\"il totale da pagare è\"+ tot"}],"id":"id_b18035a0_04ad_4b14_81b5_be3b46282deb"},"condition":"q<=5","@type":"If","id":"id_a4640a0e_05b8_41eb_b93f_36d28bd5a0cb"}],"id":"id_321b895b_649c_411b_896e_14653124498a"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_d1cc63c3_bb04_4651_89d4_4c106302429f","value":"\"no sconto\""},{"newline":true,"@type":"Output","id":"id_6daadb18_7886_4e00_b34d_ae43b560f159","value":"\"il totale da pagare è \" + tot"}],"id":"id_3a6e5471_6202_4c1c_ab3c_92577f6f1dc0"},"condition":"q<2","@type":"If","id":"id_9c66e8f1_7591_443f_8879_1e4563418c8b"},{"@type":"Return","id":"id_4ea71ce6_8f3c_48c0_b64c_78632d0f2cba","maybeValue":null}],"parameters":[]},"id":"id_77b34f33_c590_40f8_a0d5_a0f49ad4cc40","config":{"showDebugVars":true,"showFunctions":true,"lang":"java","showGenCode":true},"version":"0.2","revision":162}