by @Purple flower Fork
{"functions":[],"name":"senar parell","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_80b9c9ad_07db_4e48_bc9d_16bc10bd9fc1"},{"@type":"Declare","tpe":"Integer","name":"N","id":"id_967c1f11_aad0_41e7_96c2_1a9a8b57de8d","initValue":null},{"@type":"Declare","tpe":"Integer","name":"x","id":"id_a421f368_f84a_4886_a312_095900dfa9ff","initValue":null},{"@type":"Declare","tpe":"Integer","name":"suma","id":"id_de698513_d523_4703_b86f_47ed8dcf9a3f","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"prod","id":"id_f29233c6_c045_4714_8456_e860d801c938","initValue":"1"},{"@type":"Comment","id":"id_7b344d07_21cf_403a_94a6_64b63617a7ae","text":"Producte = multiplicacio"},{"@type":"Comment","id":"id_89e289fc_9f4d_449a_a2a8_69bb7815ed42","text":"prod=1 bc we want senar"},{"@type":"Input","name":"N","id":"id_7c9a4014_462f_433c_95e6_7cd09d61ed12","prompt":null},{"@type":"Comment","id":"id_a815ab29_3159_42be_b294_529003459d8e","text":"N, numero de vegades per fr diagrama"},{"@type":"Comment","id":"id_3aaf1aa6_7107_4128_8e53_1acfd327f690","text":"Fins que N valgui 0"},{"condition":"N>0","@type":"While","id":"id_58abfcaf_850b_4f1c_9ced_cb8c4a67cf81","body":{"statements":[{"@type":"Comment","id":"id_8ae4f4de_6c57_4b9c_a86a_7940a14aafec","text":"valors que usuari dona"},{"@type":"Input","name":"x","id":"id_97b7b579_ff3a_4e15_afc1_b91311b55940","prompt":null},{"@type":"Assign","name":"N","id":"id_2c316812_170a_451e_ba42_dd28ff3f6634","value":"N-1"},{"@type":"Comment","id":"id_114e6552_877c_43ff_8158_a68454fef5b8","text":"cuenta atras, we make N mes petit"},{"@type":"Comment","id":"id_561afe49_71be_4129_a747_1c7befe81cee","text":"Si numero es parell, residu = 0"},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_008eae54_0605_4f2c_a9ad_f3c1a774d954","value":"\"senar\""},{"@type":"Assign","name":"prod","id":"id_3eacdcaf_c61c_4536_a40e_6fb56fd42867","value":"prod+x"}],"id":"id_cede896c_7a3e_487d_877b_0d3bf913789c"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_da6fb646_af13_4caa_9398_78a7a1bf1ee5","value":"\"parell\""},{"@type":"Assign","name":"suma","id":"id_e749c611_92b7_4efd_ab26_2bd25e6c26bb","value":"suma+x"}],"id":"id_d0422b73_6635_4933_8279_94da69d276be"},"condition":"x%2==0","@type":"If","id":"id_cb14789e_b7fd_4cc7_8380_76ae284ec97a"}],"id":"id_73c6a80c_1504_4ec5_9b9c_565cb339bba6"}},{"newline":true,"@type":"Output","id":"id_4a7b38fe_0bd1_401d_9217_fe7f39da20ee","value":"\"La suma\""},{"newline":true,"@type":"Output","id":"id_3950be12_6019_46f9_a5bc_525a3b462464","value":"suma"},{"newline":true,"@type":"Output","id":"id_3bf7291a_90d3_48fd_aaca_be569da1281a","value":"\"El producte:\""},{"newline":true,"@type":"Output","id":"id_5e41dd3f_fa21_4b79_8893_7965855bf962","value":"prod"},{"@type":"Return","id":"id_bdc9df65_03d8_412d_ac12_ddefcf37aecc","maybeValue":null}],"parameters":[]},"id":"id_27f915cf_138c_4889_8cf5_47cc330d7d63","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"java","showGenCode":true},"version":"0.2","revision":504}