by @Sergio Camilo Espinosa Botero Fork
{"functions":[],"name":"PromedioNotas","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_e5be3464_0632_4fe6_ac13_69d06460f720"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"numeroNotas","lengthValue2":"5","id":"id_6659356f_ae1f_4920_8e5d_5319cd4f9b84","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"sumaNotas","lengthValue2":"5","id":"id_7b1dcc85_4b59_4645_bcc6_4d9e7966995e","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"nota","lengthValue2":"5","id":"id_5f26c2af_8fcd_4697_8d85_092b2a693b87","initValue":null},{"@type":"Input","name":"nota","id":"id_3f585f46_8235_44f0_8094_564e5b055c6c","prompt":null},{"condition":"0<=nota && nota <=5","@type":"While","id":"id_18215a5b_134c_41c2_b070_cbc4ba05bbe5","body":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_b9655766_5999_4298_90b7_b631747f632e","value":"\"Reprobado\""}],"id":"id_0a4b5b70_62b0_4af0_85c9_cda613aac27c"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_3d97739b_f59f_4bcf_ba5a_5482b5a1d80c","value":"\"Aprobado\""}],"id":"id_c11a5d7b_9d4b_4f4c_88f2_0c040028b2ec"},"condition":"nota >= 3","@type":"If","id":"id_3c32b9ba_899a_4ffa_8cc7_6d29220cd2d9"},{"@type":"Assign","name":"numeroNotas","id":"id_c2cd71fe_16b2_4644_9ade_182f22f6a503","value":"numeroNotas+1"},{"@type":"Assign","name":"sumaNotas","id":"id_6066b074_b0ed_4cc6_90ee_c8934fa1e62f","value":"sumaNotas + nota"},{"@type":"Input","name":"nota","id":"id_32034d87_bc57_493e_ba1f_195b5cfdf924","prompt":null}],"id":"id_fbaa89ca_deb5_47b4_89c5_7b8abb0dbc4a"}},{"newline":true,"@type":"Output","id":"id_23fa7596_0008_4823_b752_fc8e64949c10","value":"sumaNotas/numeroNotas"},{"@type":"Return","id":"id_85e07c06_c310_4d09_8567_fcdf2d55df80","maybeValue":null}],"parameters":[]},"id":"id_48aa0ec2_3f67_4e6d_89c8_8383135c1bb8","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":357}