by @luis enrique guzman dominguez Fork
{"functions":[],"name":"promedio3","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_a7090443_b4da_46f6_88d9_0ac2f25c6346"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"suma","lengthValue2":"5","id":"id_1bcf8328_c139_49a9_9805_dcd872a2a8ca","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"contador","lengthValue2":"5","id":"id_2d92bba5_892c_425f_9243_4100e9564aaa","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"nota","lengthValue2":"5","id":"id_54d61e8b_f342_4bd8_8a08_1165798ec5a3","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"promedio","lengthValue2":"5","id":"id_2531170c_e73b_4a11_b454_19cb848e0adf","initValue":"0"},{"@type":"Assign","name":"suma","id":"id_94eda8ce_23fc_4e31_b5de_90a8f9ecea55","value":"0"},{"@type":"Assign","name":"contador","id":"id_d096f528_1945_438d_b7c5_9d362924c501","value":"0"},{"newline":true,"@type":"Output","id":"id_11e5ab77_e570_485a_b9a2_26e86bfeb2ba","value":"\"Ingresa una calificación (negativo para terminar)\""},{"@type":"Input","name":"nota","id":"id_2699c31c_44c1_4e89_b34f_9806347ae6a4","prompt":null},{"condition":"nota >= 0","@type":"While","id":"id_4283cecf_fe6e_47c3_acef_95903e4a6311","body":{"statements":[{"@type":"Assign","name":"suma","id":"id_5ae62dbf_5555_4934_b211_ac6f47815a7f","value":"suma + nota"},{"@type":"Assign","name":"contador","id":"id_007506b8_7302_4db2_a978_0f091169655b","value":"contador + 1"},{"@type":"Input","name":"nota","id":"id_65b66ad3_a5a9_43f5_a5cd_36976dd5a80c","prompt":null}],"id":"id_204d8142_7c41_4a88_b1c4_510fcf4091a5"}},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_7ca2db9f_0591_4a60_b49a_13bafd3da244","value":"\"No se ingresaron nota\""}],"id":"id_07901203_30cb_4d94_9649_b2add8b38c94"},"trueBlock":{"statements":[{"@type":"Assign","name":"promedio","id":"id_1a08d798_92b2_4409_86c8_879e51e845b6","value":"suma/contador"}],"id":"id_d4e130b2_6ff2_4334_a1e5_631c830bc7de"},"condition":"contador > 0","@type":"If","id":"id_866d670a_a6e1_4b6f_a7dd_6779330a0eb8"},{"newline":true,"@type":"Output","id":"id_577b2449_6c57_4a3f_8ed9_d0a46ccc046b","value":"\"tu promedio es:\" + promedio"},{"@type":"Return","id":"id_590c7ab3_9a92_4c0f_b7ae_928d2ca61137","maybeValue":null}],"parameters":[]},"id":"id_3f909f79_1e6a_4391_a81e_d6dceb224db3","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"python","showGenCode":true},"version":"0.3","revision":379}