by @Steph Fork
{"functions":[],"name":"Contador_Suma_Promedio","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_74e2ffb7_40d5_4d68_8567_8ec99a381425"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"contador","lengthValue2":"5","id":"id_877a9811_236b_4182_bafc_8888962d2c79","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"valornum","lengthValue2":"5","id":"id_e850e573_0950_4a0a_a380_9cadca366ddf","initValue":null},{"@type":"Input","name":"valornum","id":"id_28d9d682_3ed4_4109_9e5d_e875624f0860","prompt":"\"Ingrese un valor númerico: \""},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"suma","lengthValue2":"5","id":"id_e081854c_d3b8_480c_8d97_201e65eee76c","initValue":"0"},{"condition":"valornum > 0","@type":"While","id":"id_3d638387_6b4f_46fb_bea0_3773a22fa4c4","body":{"statements":[{"@type":"Assign","name":"contador","id":"id_ec692b28_8baa_4770_b590_91f6ea150417","value":"contador + 1"},{"@type":"Assign","name":"suma","id":"id_0a7929d1_4ead_4024_af27_10da92e883bc","value":"valornum + suma"},{"newline":true,"@type":"Output","id":"id_21e14328_2a59_47c6_b8fe_1f3f4ff98909","value":"\"Se han contado \" + contador + \" números y el total de estos valores leído es \" + suma + \".\""},{"@type":"Input","name":"valornum","id":"id_fb7a325c_7cbc_4831_9c17_28695d1c6201","prompt":"\"Ingrese un valor númerico: \""}],"id":"id_1a727b26_ebe9_427a_ba97_6a814a7e530c"}},{"newline":true,"@type":"Output","id":"id_d1d34b03_801d_49ae_8404_8e93d87c891a","value":"\"La sección ha terminado.\""},{"@type":"Return","id":"id_7281659e_45a3_42a7_863a_a2bf220d37d4","maybeValue":null}],"parameters":[]},"id":"id_78b0a1b2_84eb_48b3_9279_20c4eda34e18","config":{"showDebugVars":true,"useInputPrompt":true,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":true},"version":"0.3","revision":376}