by @prof. Giovanna Mannarino Fork
{"functions":[],"name":"New Program","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_ddadc521_6a76_4318_93f5_edafc2c5d38f"},{"@type":"Declare","tpe":"Integer","name":"n","id":"id_b8240bea_991e_4f1e_a221_b5888d90b2eb","initValue":null},{"@type":"Declare","tpe":"Integer","name":"pari","id":"id_84e59727_5df4_4c94_8212_468ff01550aa","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"dispari","id":"id_6f1ae89d_6318_4eb7_8a59_ba548f260d64","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"conta","id":"id_3e6954db_8d86_44f8_a2ba_aeea2681339f","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"contap","id":"id_a6160666_ade0_4c5d_b17f_af4aba6e1635","initValue":null},{"@type":"Declare","tpe":"Integer","name":"contad","id":"id_8182cf3a_bea8_4b34_9d33_dd17299f6a92","initValue":null},{"@type":"Declare","tpe":"Integer","name":"sommap","id":"id_1ec51a60_53ae_4ab6_99d5_d1a1cfeab377","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"sommad","id":"id_43d92490_2cae_4e8e_9e11_1ce0970e4cff","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"conta1","id":"id_a34471c3_31e7_4817_90ef_addb2ecc5c0a","initValue":"1"},{"@type":"Declare","tpe":"Real","name":"mediad","id":"id_d6a81a19_bbde_4b00_8844_859490333897","initValue":null},{"@type":"Declare","tpe":"Real","name":"mediap","id":"id_ec30ab47_8a5a_44d7_96b3_63d5b21f2413","initValue":null},{"condition":"conta<5","@type":"While","id":"id_023ce54c_4236_4b61_9683_ae8960f498c0","body":{"statements":[{"@type":"Assign","name":"conta","id":"id_0a629176_e40d_4035_a92c_1277424f0d21","value":"conta+1"},{"@type":"Input","name":"n","id":"id_71039b73_562e_4d31_aa2f_42be0c3b927d","prompt":null},{"falseBlock":{"statements":[{"@type":"Assign","name":"dispari","id":"id_fa19fc18_fe19_4aab_b35a_f304cb42e08a","value":"dispari+1"},{"newline":true,"@type":"Output","id":"id_76d8fbfa_3fee_44c7_92f7_53a7012a4997","value":"\"il numero è dispari\""},{"@type":"Assign","name":"sommad","id":"id_78bcf1c9_f2b9_4b53_8f97_b474ecf6175d","value":"sommad+n"}],"id":"id_7c73f40c_6637_481a_bb18_6abf0fb48873"},"trueBlock":{"statements":[{"@type":"Assign","name":"pari","id":"id_43372fb9_3c10_4330_8526_0c4aede5cab5","value":"pari+1"},{"newline":true,"@type":"Output","id":"id_a0200505_8ef9_4a5a_ad5f_e40331d2793a","value":"\"il numero è pari\""},{"@type":"Assign","name":"sommap","id":"id_d78effb0_aaa0_4fe9_86ef_19cd469d3ad4","value":"sommap+n"}],"id":"id_2a731b02_0f1b_4bcf_84b6_b505f1a25128"},"condition":"n%2==0","@type":"If","id":"id_387517d4_616d_44d1_8933_4302e8731cff"}],"id":"id_eeb35e02_ce62_42fb_ace0_a10f0077fa28"}},{"@type":"Assign","name":"mediap","id":"id_b7396835_446d_449d_81df_7f31ac684a53","value":"mediap/contap"},{"@type":"Assign","name":"mediad","id":"id_8155ed72_eac2_4c64_a78d_697228a07864","value":"sommad/contad"},{"newline":true,"@type":"Output","id":"id_8dadbbdc_f155_464e_a12b_bc50214841dd","value":"\"i numeri pari sono\"+pari"},{"newline":true,"@type":"Output","id":"id_7b13d3b8_765c_4787_9470_eff6bda4570f","value":"\"i numeri dispari sono\"+dispari"},{"@type":"Return","id":"id_a64030ac_3b2b_41be_9f56_6e6b2fa9566a","maybeValue":null}],"parameters":[]},"id":"id_339135bc_a5a5_47f8_b1cf_6f68266cef74","config":{"showDebugVars":true,"showFunctions":true,"lang":"java","showGenCode":true},"version":"0.2","revision":665}