by @stud. Mattia Sportelli Fork
{"functions":[],"name":"divisibile","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_4a71c421_f49d_44c0_9ec8_e15a98071fef"},{"@type":"Declare","tpe":"Integer","name":"n","id":"id_6a82592e_4b22_43b2_a5e4_9ec28c122ba6","initValue":null},{"@type":"Declare","tpe":"Integer","name":"n1","id":"id_ac6d239c_6524_4785_87d1_3a7f93991ac4","initValue":null},{"@type":"Declare","tpe":"Integer","name":"n2","id":"id_beb9b003_26d7_4afd_b828_c8b56c59545f","initValue":null},{"@type":"Declare","tpe":"Integer","name":"n3","id":"id_b01ba84e_4ec6_4bb5_a6d6_79e4ca81b6b3","initValue":null},{"newline":true,"@type":"Output","id":"id_1704bf1b_61bd_4e8d_a5d2_cecee314b8c5","value":"\"per quanto vuoi dividere?\""},{"@type":"Input","name":"n1","id":"id_7e9e39f1_1c3f_4ce5_91de_0529b4b89d5d","prompt":null},{"newline":true,"@type":"Output","id":"id_7cc3983a_c865_45f3_914f_e0614c584732","value":"\"che numero vuoi dividere per \" + n1 + \" ?\""},{"@type":"Input","name":"n2","id":"id_1bbf2cc0_a880_4837_b89e_574c4d2097eb","prompt":null},{"@type":"Assign","name":"n","id":"id_ef121823_4e71_4efc_af3f_894c96fb8f76","value":"1"},{"condition":"n<=n1","@type":"While","id":"id_078ba0f5_bc6a_46c8_b991_4522d3a00c36","body":{"statements":[{"@type":"Assign","name":"n3","id":"id_ed1bcc49_27ab_4174_908e_5765c20e0fda","value":"n2%n"},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_c86e6cdf_6f9b_4001_aabf_a12a4a1db1e2","value":"\"il numero \" + n2 + \" non è divisibile per \" + n"}],"id":"id_0254ca03_ef45_48fa_9ee3_234c43fa09e6"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_53113d46_b3ac_4c73_b16c_d0e361f332de","value":"\"il numero \" + n2 + \" è divisibile per \" + n"}],"id":"id_643aba5d_fb8c_45d2_b4dc_2d5e3a84cbee"},"condition":"n3==0","@type":"If","id":"id_9b08f1f1_4bf5_47f5_967c_25378e5e713e"},{"@type":"Assign","name":"n","id":"id_23bf273f_98b2_486a_a8bd_40047c2d567d","value":"n+1"}],"id":"id_52a7b843_246a_4287_9faa_bf668334d1ee"}},{"@type":"Return","id":"id_44f0f8fb_4ffa_4e96_aad8_ccc601a3b24c","maybeValue":null}],"parameters":[]},"id":"id_f19ad962_76f0_45c8_8d66_93204993cc3f","config":{"showDebugVars":true,"showFunctions":true,"lang":"java","showGenCode":true},"version":"0.2","revision":159}