by @DANIELE UGON Fork
{"functions":[],"name":"New Program","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_cf5549c5_ba0b_4d16_8f0a_09a7506efee7"},{"@type":"Declare","tpe":"Real","name":"b","id":"id_86dee632_a351_4f23_9754_c640495c3ade","initValue":null},{"@type":"Declare","tpe":"Real","name":"h","id":"id_b2424c4a_691b_4f89_ab59_4e746357e37e","initValue":null},{"@type":"Declare","tpe":"Real","name":"A","id":"id_b529cffc_fcf7_4a9f_a9da_739b84c58790","initValue":null},{"@type":"Input","name":"b","id":"id_cdd54a30_4503_4b23_99b0_2d29f05160c7","prompt":"Inserisci la base"},{"condition":"b<0","@type":"While","id":"id_96dfb6f1_e2ab_4328_b174_da364f85a4e8","body":{"statements":[{"newline":true,"@type":"Output","id":"id_c9af2dbc_3206_43fa_b65d_e8efba1af0ca","value":"\"La base deve essere positiva\""},{"@type":"Input","name":"b","id":"id_f452c0ac_bc32_4afa_aa83_01f5363c11fc","prompt":"Inserisci la base"}],"id":"id_bb3dba67_f967_417a_8bc8_fcb95e51743e"}},{"@type":"Input","name":"h","id":"id_173fb8db_b2b7_4b0f_afb1_ceb61b21ef57","prompt":"Inserisci l'altezza"},{"condition":"h<0","@type":"While","id":"id_24f3144b_6d49_413c_ae99_97f50be14efa","body":{"statements":[{"newline":true,"@type":"Output","id":"id_4bfec151_82f4_4bb6_8399_5d9c887b7443","value":"\"Errore: l'altezza deve essere positiva\""},{"@type":"Input","name":"h","id":"id_3e1fb6ad_5af3_4b9a_ae5b_794d95e14f4f","prompt":"Inserisci l'altezza"}],"id":"id_38fa6613_cb69_4e76_96d3_9b0b35b85abc"}},{"@type":"Assign","name":"A","id":"id_347f4083_1491_46f5_aabe_7bcf56dba77a","value":"b*h"},{"newline":true,"@type":"Output","id":"id_6a81f2bc_4f5a_49e0_8a32_94673437fc88","value":"\"L'area del rettangolo รจ \" + A"},{"@type":"Return","id":"id_cdeb36ba_9a4f_41b4_9141_ae5835db962a","maybeValue":null}],"parameters":[]},"id":"id_42d66a21_6877_422a_aa94_028571788c6c","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"java","showGenCode":true},"version":"0.2","revision":390}