by @Joelys Latorre Fork
{"functions":[],"name":"LatorreJoelysFlujWhile2","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_74015f84_a93d_473b_aee6_7dae9b469b2c"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"mayor","lengthValue2":"5","id":"id_bc6f80f7_878c_4988_b821_8174f2f320fe","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"valor","lengthValue2":"5","id":"id_008aaa4f_8af3_4f73_8c4e_fef2c06ae293","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"contador","lengthValue2":"5","id":"id_ad728175_b197_4679_8c29_5040f7ff1780","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"suma","lengthValue2":"5","id":"id_ac8291be_fe7f_4b86_8d35_2a852075dd2c","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"promedio","lengthValue2":"5","id":"id_19076603_95f0_4e0c_9152_d7128c8a43a6","initValue":"2"},{"condition":"valor >= 0","@type":"While","id":"id_467034a6_d70c_4ba8_bdb2_0e55a5ee900e","body":{"statements":[{"newline":true,"@type":"Output","id":"id_f1e8f2ba_136a_4a7c_bc6a_2d6f64a0e0b6","value":"\"Entre un valor:\" + valor"},{"@type":"Input","name":"valor","id":"id_858b523f_a52d_4b23_b974_4c7ce320d5c3","prompt":null},{"falseBlock":{"statements":[{"@type":"Assign","name":"contador","id":"id_878eca41_7c4e_41c1_a03a_ec210161e8fe","value":"contador + 1"},{"@type":"Assign","name":"suma","id":"id_0fe67422_281a_497c_9748_fafcc7f40d94","value":"suma + valor"},{"@type":"Assign","name":"promedio","id":"id_e79a12dc_badd_46a2_ab8d_83f52e1b8686","value":"suma / contador"}],"id":"id_76b6248a_e912_4da0_9363_da5fe3400488"},"trueBlock":{"statements":[],"id":"id_50534ae9_977e_4c3f_913f_a0052fa8d553"},"condition":"valor < 0","@type":"If","id":"id_6997a18a_1cde_4be3_bbe8_68580f63c45e"}],"id":"id_5cd39b12_76e0_401d_b096_ad561fea2f3a"}},{"newline":true,"@type":"Output","id":"id_bd74930b_6137_43f0_b333_ddd03c84bb25","value":"\"Se leyeron \" + contador + \" valores\""},{"newline":true,"@type":"Output","id":"id_d9ae7f9a_c06e_4488_9dca_57761aa38ddd","value":"\"El promedio es \" + promedio"},{"newline":true,"@type":"Output","id":"id_e3d62161_20ef_49a0_9a3c_6a31f393c776","value":"\"El valor mayor es \" + valor"},{"@type":"Return","id":"id_f32de85e_300f_44b0_9884_e02e3c8b43c8","maybeValue":null}],"parameters":[]},"id":"id_6ca83430_1ed8_4d0f_8ffb_6292364c2d66","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":1027}