by @Malvine Ferlaino Fork
{"functions":[],"name":"New Program","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_e30e6c79_f68b_4ace_acce_d2cb474354d4"},{"@type":"Declare","tpe":"Integer","name":"borsellino","id":"id_4c8fce7a_145c_4fc7_8ac3_f6a97f0eeab7","initValue":null},{"@type":"Assign","name":"borsellino","id":"id_8ea5a31e_487b_45b0_9b06_e6a28d671938","value":"15"},{"@type":"Declare","tpe":"Integer","name":"cornetto","id":"id_550c2b4f_ad25_46bc_a179_781949a747a1","initValue":null},{"@type":"Assign","name":"cornetto","id":"id_72bfd612_26df_4301_8dd7_e72d944f5e1f","value":"1"},{"@type":"Declare","tpe":"Integer","name":"panino","id":"id_04b70ad7_3bcc_4451_86e3_206329dbc2ff","initValue":null},{"@type":"Assign","name":"panino","id":"id_834c1204_3ecf_4ed1_9558_d665343d4500","value":"2"},{"newline":true,"@type":"Output","id":"id_588b0bd1_7233_4037_939c_9a9dff70ba0b","value":"\"giorno 1\""},{"falseBlock":{"statements":[{"falseBlock":{"statements":[],"id":"id_dcff795a_ced2_43af_b6f1_31364aa54e65"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_165eb490_84ce_40de_a6d3_30f640d91808","value":"\"non posso comprare nulla\""}],"id":"id_b6cf058e_a95c_4e83_82fd_87d6ff630b5b"},"condition":"borsellino<=0","@type":"If","id":"id_a3e69913_4c37_4e47_8402_2fe568967572"}],"id":"id_2fa85c73_16bb_48b9_9cfb_6cfebe0a8b28"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_d550c22b_a5a4_4fe1_b413_e8ee9be57dd8","value":"\"se mangio un cornetto scrivi -1, se mangio un panino scrivi -2\""},{"newline":true,"@type":"Output","id":"id_f2522112_2055_4187_a3b3_26b9a873e32f","value":"\"borsellino=15\""},{"newline":true,"@type":"Output","id":"id_a5c18702_c5b0_4332_8858_ed699ae8fe03","value":"\"compro un cornetto\""},{"condition":"borsellino==14","@type":"While","id":"id_a6aedd3a_acf7_43b8_89d2_71013500a754","body":{"statements":[],"id":"id_5cecd218_12ce_468d_b307_1e4e6a82191f"}},{"newline":true,"@type":"Output","id":"id_7760d991_0931_4959_98eb_f0efc67fb13e","value":"\"compro un panino\""},{"condition":"borsellino==13","@type":"While","id":"id_7c08d17c_475f_4992_a940_9a5525c0a983","body":{"statements":[],"id":"id_4f1e315c_294a_4962_a6c2_23276133cfe1"}}],"id":"id_21f4740f_ddc4_4544_be9c_247504fb5d18"},"condition":"borsellino>0","@type":"If","id":"id_97e17b29_7b24_4239_932d_694422f41f52"},{"newline":true,"@type":"Output","id":"id_b2a67108_882a_4ae1_8ba7_38319e4f106e","value":"\"giorno 2\""},{"falseBlock":{"statements":[{"falseBlock":{"statements":[],"id":"id_1c3520bc_af24_40bd_8b88_02b6ffb87dfa"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_f7cf58d3_1bd1_4af7_ad36_ffa49ecea82c","value":"\"non posso comprare nulla\""}],"id":"id_a81b10ec_7cce_48ce_9048_c05161a47cb2"},"condition":"borsellino<=0","@type":"If","id":"id_f0a03a56_4749_4f2f_bbb2_6c2b2addd9d4"}],"id":"id_20d8dbea_9392_41ce_a964_d9a7db17c8c5"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_841527de_5c7e_4646_a5c7_4eb11cdf3fe2","value":"\"se mangio un cornetto scrivi -1, se mangio un panino scrivi -2\""},{"newline":true,"@type":"Output","id":"id_9680bfd7_fe15_449d_8b2e_74c88cac318d","value":"\"compro un cornetto\""},{"condition":"borsellino==13","@type":"While","id":"id_5af28955_4557_43b2_bc7f_0973e053a475","body":{"statements":[{"@type":"Comment","id":"id_4726b569_469a_4fd3_986d_0eb4ba78d819","text":"se ieri ho mangiato un cornetto"}],"id":"id_4cf0f0de_335b_4fcd_bcba_8d872fc86f2c"}},{"@type":"Comment","id":"id_3ce8af82_5e4f_409a_8ea0_5bc2488d82c6","text":"se ieri ho mangiato un panino"},{"newline":true,"@type":"Output","id":"id_d4aa50c5_d862_4f8d_b191_aaea2ebfb90d","value":"\"compro un panino\""},{"condition":"borsellino==12","@type":"While","id":"id_a464c76d_2a02_4cec_befd_6b96da874594","body":{"statements":[{"@type":"Comment","id":"id_ca298aec_4d71_40ad_b1c7_bfa4dc83514c","text":"se ieri ho mangiato un cornetto"}],"id":"id_b178f5ce_c78c_4124_9461_e8c415247de2"}},{"@type":"Comment","id":"id_0d3a4c5e_a6b2_473a_bb0c_366270f21d5e","text":"se ieri ho mangiato un panino"}],"id":"id_935c1557_3382_40bb_bdc2_b3820a71ec1a"},"condition":"borsellino>0","@type":"If","id":"id_2d4cdefd_8577_4a5f_abd9_66831efa4028"},{"newline":true,"@type":"Output","id":"id_c1c48b87_9bdf_42c9_8a9c_96ac1c04c1ec","value":"\"giorno 3\""},{"falseBlock":{"statements":[{"falseBlock":{"statements":[],"id":"id_e02121ae_770f_48f5_bdf0_1167e0c5f808"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_0a568faa_5bfc_4973_b344_93ee7d4f0c38","value":"\"non posso comprare nulla\""}],"id":"id_1be7afcc_7375_4ab2_a6e2_0dc6b08b34cb"},"condition":"borsellino<=0","@type":"If","id":"id_f9e8ffa7_f554_4331_8484_ab73f664da58"}],"id":"id_88c4cd25_c6ba_40a4_b467_77fed22e3ea5"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_d5da95a3_4111_48cd_8c08_37d8effa1756","value":"\"se mangio un cornetto scrivi -1, se mangio un panino scrivi -2\""},{"newline":true,"@type":"Output","id":"id_39c3dbf9_17ca_4615_adbc_932bba650e55","value":"\"compro un cornetto\""},{"condition":"borsellino==12","@type":"While","id":"id_0196e6d5_54db_4422_ade4_5996bbc1fddd","body":{"statements":[{"@type":"Comment","id":"id_897507dc_1146_420a_8c00_e0b6fc3bf9b1","text":"se ieri ho mangiato un cornetto"}],"id":"id_564d5fb5_abb2_4652_a38c_e8cd785483e5"}},{"@type":"Comment","id":"id_e75b926b_d0bc_4cc8_9af2_8e7952cd9f00","text":"se ieri ho mangiato un panino"},{"newline":true,"@type":"Output","id":"id_28b6196a_f4d6_49a1_9be8_0c68f2170b40","value":"\"compro un panino\""},{"condition":"borsellino==11","@type":"While","id":"id_25882468_1e73_44fb_a016_b1f378e76325","body":{"statements":[{"@type":"Comment","id":"id_06edddfb_395e_49ff_9724_6d728898b0ed","text":"se ieri ho mangiato un cornetto"}],"id":"id_c7f61d50_d2bb_4b41_9a2a_e43ac85f4641"}},{"@type":"Comment","id":"id_a19a142c_3efe_4837_8eb7_d6f3c7334569","text":"se ieri ho mangiato un panino"}],"id":"id_7e57f32d_86be_44f3_94fe_dd1ff1a094af"},"condition":"borsellino>0","@type":"If","id":"id_cabd866a_e2d5_4a3d_bce0_708738a04d04"},{"newline":true,"@type":"Output","id":"id_97f9c33b_3703_46aa_872b_c108a997ac7d","value":"\"giorno 4\""},{"falseBlock":{"statements":[{"falseBlock":{"statements":[],"id":"id_02e8ed09_62f3_4b09_93be_fc36504e8c1d"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_d100934e_1a98_4c68_b652_0e3005bc1c83","value":"\"non posso comprare nulla\""}],"id":"id_b902876e_ff0f_4934_b234_2e59aaa6e1f5"},"condition":"borsellino<=0","@type":"If","id":"id_e2d69b09_8c19_43c7_bf58_151050ec9d61"}],"id":"id_36e04ec4_25cf_4811_a206_242cf3267264"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_4852f9b1_2cec_435f_bebe_b4468f69a3b7","value":"\"se mangio un cornetto scrivi -1, se mangio un panino scrivi -2\""},{"newline":true,"@type":"Output","id":"id_d958210d_28c9_42c3_a99b_01ab435e5978","value":"\"compro un cornetto\""},{"condition":"borsellino==11","@type":"While","id":"id_524affb7_356a_456f_a2ab_fe4237097ff3","body":{"statements":[{"@type":"Comment","id":"id_f72a2d2d_9e4a_461a_881a_0239a29cdad0","text":"se ieri ho mangiato un cornetto"}],"id":"id_c939a680_94fb_4e94_bf81_3e6171dc5007"}},{"@type":"Comment","id":"id_fd068334_e361_40ab_a437_5ea7e087e7d6","text":"se ieri ho mangiato un panino"},{"newline":true,"@type":"Output","id":"id_b50f2945_4425_4db8_9889_ca5fcd25e5da","value":"\"compro un panino\""},{"condition":"borsellino==10","@type":"While","id":"id_573b34df_7f89_48fa_999e_503670da0748","body":{"statements":[{"@type":"Comment","id":"id_df708594_4253_4cef_83b6_35389877a99f","text":"se ieri ho mangiato un cornetto"}],"id":"id_6cc1d652_eb32_401d_81f2_3104f456ae43"}},{"@type":"Comment","id":"id_46943e90_17ad_4541_8f3a_b2126054f6af","text":"se ieri ho mangiato un panino"}],"id":"id_46043d5e_c10b_46a7_bc18_d74e59c7dac2"},"condition":"borsellino>0","@type":"If","id":"id_6b57ad61_a5f7_46b3_bb0d_ab54a4e8d63e"},{"newline":true,"@type":"Output","id":"id_2e7f7112_eec8_46fe_8d69_1bf91f67fd9e","value":"\"giorno 5\""},{"falseBlock":{"statements":[{"falseBlock":{"statements":[],"id":"id_efe51353_4dfe_4155_b152_dca4dd0a933d"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_2c04a3fc_8e2b_4397_85df_c8b87fbdefdc","value":"\"non posso comprare nulla\""}],"id":"id_781bbe30_7824_47bc_9e46_1d116932e658"},"condition":"borsellino<=0","@type":"If","id":"id_8c63d071_4098_4f13_8ffd_53edc5ddb98b"}],"id":"id_c9667372_a432_4bf5_82c0_288f3e54cd5f"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_3aa4a33c_b30f_4a43_9147_8f34bcdb7444","value":"\"se mangio un cornetto scrivi -1, se mangio un panino scrivi -2\""},{"newline":true,"@type":"Output","id":"id_f18f7d36_18cf_4571_8c87_150212a5f664","value":"\"compro un cornetto\""},{"condition":"borsellino==10","@type":"While","id":"id_879f5f81_c5d8_4c1f_b6ea_4c30f5cb385f","body":{"statements":[{"@type":"Comment","id":"id_c1f7736e_042b_4773_80a9_65247625a34f","text":"se ieri ho mangiato un cornetto"}],"id":"id_079b9485_f841_414d_a526_d950eb3f309a"}},{"@type":"Comment","id":"id_abba97d3_f769_47f4_a9c1_fe3d47653cad","text":"se ieri ho mangiato un panino"},{"newline":true,"@type":"Output","id":"id_858ff472_3dec_4760_8a4c_512285c82ccf","value":"\"compro un panino\""},{"condition":"borsellino==","@type":"While","id":"id_0b1aec13_e1bd_485c_9f97_301170dd4618","body":{"statements":[{"@type":"Comment","id":"id_17eaa504_398b_40ce_bd93_55d1bd775151","text":"se ieri ho mangiato un cornetto"}],"id":"id_5ebe120e_1b3e_4a8e_849c_654b1c6ab77b"}},{"@type":"Comment","id":"id_a281b10e_d2ea_45d7_bc1e_5e4f30c10aab","text":"se ieri ho mangiato un panino"}],"id":"id_64912950_7a40_452c_a617_4e4bea270aa8"},"condition":"borsellino>0","@type":"If","id":"id_acab7642_54f9_40c7_a37c_72e3c552973e"},{"@type":"Return","id":"id_a0ded52f_d53c_4a56_a723_d731e73f0dbb","maybeValue":null}],"parameters":[]},"id":"id_d5760aeb_6508_4f3f_9afa_71d99b3e757c","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"java","showGenCode":true},"version":"0.2","revision":1405}