by @Michele De Rosa Fork
{"functions":[],"name":"Sconto","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_17bd7df7_4b79_42ca_b6f5_5670d741ce26"},{"@type":"Comment","id":"id_0f6534be_c9df_4b58_87b8_97445167084a","text":"Calcolo dello sconto"},{"@type":"Declare","tpe":"Real","name":"prezzo","id":"id_d0613572_8d9c_4c6a_8284_f5e2e91cf8d8","initValue":null},{"@type":"Declare","tpe":"Real","name":"sconto","id":"id_c7778eab_67f3_4f1c_bc2f_f5495fa1aa9b","initValue":null},{"@type":"Declare","tpe":"Real","name":"prezzoScontato","id":"id_6fcb9a4b_5732_48e7_8a80_fef2e279546f","initValue":null},{"condition":"prezzo <= 0","@type":"DoWhile","id":"id_026a24b6_aa02_44b5_afcb_074e59e9c70e","body":{"statements":[{"@type":"Input","name":"prezzo","id":"id_ead3324d_288c_45c1_ac3f_8174ca832c1a","prompt":"Inserisci il prezzo"}],"id":"id_5bddbe66_1d5f_4a29_b95d_5acd803b8a47"}},{"condition":"sconto <0 || sconto > 100","@type":"DoWhile","id":"id_127f26b5_aa30_4f99_afdf_d1e164023536","body":{"statements":[{"@type":"Input","name":"sconto","id":"id_12aaba06_9470_47f5_bc50_c24e29580480","prompt":"Inserisci lo sconto"}],"id":"id_f624e227_0ab0_418a_8aea_6f2e1e3c8bb8"}},{"@type":"Assign","name":"prezzoScontato","id":"id_3e56e2a3_84f4_4bf3_80b4_1023e393af77","value":"prezzo*sconto/100"},{"newline":true,"@type":"Output","id":"id_48c545e9_14a5_4629_877e_5e30554c767d","value":"\"Lo sconto รจ di \" + prezzoScontato+ \" euro\""},{"@type":"Return","id":"id_54e03af6_c3a9_4cf2_9e19_51e46f776633","maybeValue":null}],"parameters":[]},"id":"id_65e7feda_5549_46d0_948e_ed4386c9dbf8","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"c++","showGenCode":true},"version":"0.2","revision":330}