{"functions":[],"name":"Pari dispari pp.131 n.2","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_f10930eb_157c_47ad_b95a_f2df60ad12fd"},{"@type":"Declare","tpe":"Integer","name":"numero","id":"id_7b5f6180_fd0b_4f88_9206_35c37f65e2fe","initValue":null},{"@type":"Declare","tpe":"Integer","name":"media","id":"id_924be9cb_0fad_409b_aa3a_53d65df12a2d","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"pari","id":"id_0809f31a_b19a_4ed9_a197_0db9d7442ca6","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"dispari","id":"id_d8784086_b8d4_4a86_b3a7_6fb13bea62ec","initValue":"0"},{"varName":"i","incr":"1","@type":"ForLoop","start":"1","end":"3","id":"id_51211332_ce5a_44c2_91b6_01025c870270","body":{"statements":[{"@type":"Input","name":"numero","id":"id_941f8ea9_fe67_4179_9c45_1be801fd3c2a","prompt":"Inserisci numero"},{"falseBlock":{"statements":[],"id":"id_e9d782a9_4201_4b16_ac87_2ca4b8ca6bb1"},"trueBlock":{"statements":[{"@type":"Comment","id":"id_9e7b1ddc_4ef1_462b_9f99_217735a9a5d5","text":"Numero negativo"},{"@type":"Assign","name":"numero","id":"id_521e427b_8141_4b44_b0e5_9f5eee6c1d2d","value":"-numero"}],"id":"id_4bc02418_1a1c_4291_8067_e43d2c292dfc"},"condition":"numero < 0","@type":"If","id":"id_332f76b1_257d_4cf3_8af7_c7bbe00c9ae5"},{"@type":"Assign","name":"media","id":"id_c8c6c2d4_2ec6_4df4_9c6d_94815e3e8675","value":"media + numero"},{"falseBlock":{"statements":[{"@type":"Comment","id":"id_04cd9e0e_0172_4a17_a869_66075495fee9","text":"Numero dispari"},{"@type":"Assign","name":"dispari","id":"id_86738eca_affc_4a82_97bb_8ae34795c7d4","value":"dispari + 1"}],"id":"id_14b5c2e6_f6c4_407b_bc73_a58c14949094"},"trueBlock":{"statements":[{"@type":"Comment","id":"id_2f3d503e_cfdd_49b5_b4da_6b1b88a78475","text":"Numero pari"},{"@type":"Assign","name":"pari","id":"id_16440a6d_b641_48e1_8abb_fc6f240bd239","value":"pari + 1"}],"id":"id_aa46b88c_d381_442e_8f37_961636e47b56"},"condition":"numero % 2 == 0","@type":"If","id":"id_1eb6bcae_3062_4067_89d0_cfb338328f03"}],"id":"id_140452f9_416c_4b6a_81a8_b53b61ab660f"}},{"@type":"Assign","name":"media","id":"id_d26048ff_5f56_4b3d_8460_8fba309302b8","value":"media / 3"},{"newline":true,"@type":"Output","id":"id_6bb80f9f_5e9a_490f_b593_712be5639ab9","value":"\"Media \" + media"},{"newline":true,"@type":"Output","id":"id_27330405_b049_431e_b516_e97c8ea89a3a","value":"\"Pari \" + pari"},{"newline":true,"@type":"Output","id":"id_ea006021_d86f_4b31_967b_a5edb6b15c52","value":"\"Dispari \" + dispari"},{"@type":"Return","id":"id_6f32ecb4_8997_4c1e_a29b_8da2b543911c","maybeValue":null}],"parameters":[]},"id":"id_c844e9c3_7151_4d30_98c1_8b69b40d8a52","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"java","showGenCode":true},"version":"0.2","revision":389}