by @stud. Matteo Chirico Fork
{"functions":[],"name":"New Program","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_e40472ed_6220_477b_bca1_2387847bbe1c"},{"@type":"Declare","tpe":"Integer","name":"qta","id":"id_e679656c_d771_4fec_92e1_4a5ee577f389","initValue":null},{"@type":"Declare","tpe":"Real","name":"p","id":"id_c0b70609_9a04_4a86_ba3b_b9145698ffbb","initValue":null},{"@type":"Declare","tpe":"Real","name":"tot","id":"id_e81b5022_dc03_441d_b4dd_e0ea9efbe2e5","initValue":null},{"@type":"Declare","tpe":"Real","name":"s","id":"id_56b71d96_117c_4b54_ac02_c55cff4ec69b","initValue":null},{"@type":"Declare","tpe":"Real","name":"ps","id":"id_4ac41b45_4331_4e57_87ca_8b8b809a0b9e","initValue":null},{"newline":true,"@type":"Output","id":"id_1e5e55fb_acdb_4136_a2c6_f5752ce58ff6","value":"\"dammi qta\""},{"@type":"Input","name":"qta","id":"id_4b9e4b7b_b7c1_4ae9_894b_e28cda34376f","prompt":null},{"newline":true,"@type":"Output","id":"id_e54bac05_0e7d_43ca_881d_812d8870cc64","value":"\"dammi p\""},{"@type":"Input","name":"p","id":"id_4b64e1c7_7154_4ea7_857b_ca42913076c2","prompt":null},{"@type":"Assign","name":"tot","id":"id_c66561a4_c3f1_4831_ab2b_1a06e70de337","value":"qta*p"},{"falseBlock":{"statements":[{"@type":"Assign","name":"tot","id":"id_93f91664_2891_43ef_b11d_f2aa5d52b6cc","value":"qta*p"},{"newline":true,"@type":"Output","id":"id_a9db41a6_314b_4997_8af6_a941d1657ddf","value":"\"il totale è\""},{"newline":true,"@type":"Output","id":"id_a94f65b4_6a13_411a_a5ed_6e56ace07e13","value":"tot"}],"id":"id_d3da856c_3d54_4778_9a40_18d620d3c0b0"},"trueBlock":{"statements":[{"@type":"Assign","name":"s","id":"id_68a2cd05_e561_4d9a_b9c8_4b72191c8830","value":"(tot*5)/100"},{"newline":true,"@type":"Output","id":"id_0df05229_0f28_47ae_876b_21576c27c489","value":"\"lo sconto è\""},{"newline":true,"@type":"Output","id":"id_3087ad0b_f114_49fb_9c9f_9e325f4deeb3","value":"s"},{"@type":"Assign","name":"ps","id":"id_7fb48e0f_aa09_4b59_9c01_8dabc9ad83fc","value":"tot-s"},{"newline":true,"@type":"Output","id":"id_9b78c9a7_39db_47be_9301_1ce736dfcef1","value":"\"il prezzo scontato è\""},{"newline":true,"@type":"Output","id":"id_7aa38bc8_4b0e_4850_91c6_8441a1b770b6","value":"ps"}],"id":"id_5b0b2ae0_2513_42e3_b211_af06b270c218"},"condition":"qta>5","@type":"If","id":"id_6705fa72_3f29_448f_b158_dbb9c8f395c2"},{"@type":"Return","id":"id_326ac172_36d0_4c36_905d_5bd205d0a40b","maybeValue":null}],"parameters":[]},"id":"id_df816f00_f6f0_4e9f_a77a_bdb1c3def19e","config":{"showDebugVars":true,"showFunctions":true,"lang":"java","showGenCode":true},"version":"0.2","revision":97}