by @ANTONELLO CERCHIA Fork
{"functions":[],"name":"New Program","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_f3798521_c579_40bc_b87d_f039485ee0db"},{"@type":"Declare","tpe":"Real","name":"B","id":"id_6b017835_e6b9_4416_a505_2cdc17d3684e","initValue":null},{"@type":"Declare","tpe":"Real","name":"h","id":"id_46fb78d9_2986_49b8_a375_4f81045984c9","initValue":null},{"@type":"Declare","tpe":"Real","name":"A","id":"id_70ba3529_9ab5_442a_b4d4_e7e4b0bfc9b8","initValue":null},{"@type":"Input","name":"B","id":"id_f31afaf8_bc50_43bb_9da2_10566ab8b822","prompt":null},{"condition":"B<0","@type":"While","id":"id_d4b80f7c_e5c1_4e41_882c_6a81abd2e909","body":{"statements":[{"newline":true,"@type":"Output","id":"id_b71cc5f1_5602_4724_b6dd_51e6d529cd97","value":"\"La base non può essere negativa\""},{"@type":"Input","name":"B","id":"id_9bb6c2d1_1b16_41f9_af85_0c6b64d56c5f","prompt":null}],"id":"id_e719a089_7108_4abf_9ed1_4dd6d4a66d21"}},{"@type":"Input","name":"h","id":"id_a74848cf_b7e3_4269_8f91_8b5fa171c398","prompt":null},{"condition":"h<0","@type":"While","id":"id_2f3c06be_559f_4c7d_9281_f70ab711a09a","body":{"statements":[{"newline":true,"@type":"Output","id":"id_748beea4_cdeb_47ba_9350_a386f643d455","value":"\"l'altezza non può essere negativa\""},{"@type":"Input","name":"h","id":"id_740d1fc9_b55d_4ea8_a540_1c2dbbcfa40e","prompt":null}],"id":"id_c908660a_a622_492b_84ef_13796de29399"}},{"@type":"Assign","name":"A","id":"id_7554116b_339b_49ab_9073_6458fe567957","value":"B*h"},{"newline":true,"@type":"Output","id":"id_b46bb934_938f_4712_89af_5d957550be0d","value":"\"L'aria del rettangolo è uguale a\"+A"},{"@type":"Return","id":"id_54f11ba0_1b29_4417_90f7_dcbac546c5a3","maybeValue":null}],"parameters":[]},"id":"id_f883c14f_9802_48b5_a2c6_505b043974e8","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"java","showGenCode":true},"version":"0.2","revision":558}