{"functions":[],"name":"4 taller decisiones","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_84c77399_06a7_4856_b571_c7c8497e7522"},{"@type":"Comment","id":"id_fc7b312e_f0eb_41f0_a8a0_97d7d09e5c36","text":"Programa que lee un número entero de cuatro dígitos y determina a cuanto es igual la suma de sus dígitos."},{"@type":"Declare","tpe":"Integer","name":"x","id":"id_2f34531f_eb27_4a9a_a0c8_42f1671c1e7d","initValue":null},{"@type":"Input","name":"x","id":"id_7311ea62_c47b_4a48_bfa1_824f5bc90746","prompt":"Ingrese un número entero de 4 dígitos: "},{"@type":"Declare","tpe":"Integer","name":"sum","id":"id_d285b148_3eef_4fc0_ad72_ec81d5f5260a","initValue":null},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_2cf8ce29_899b_4914_a189_93012b9f06b1","value":"\"El número ingresado no está en el rango de valores permitido.\""}],"id":"id_08d11ef1_9cc2_4e20_a699_9b9a467a3ac7"},"trueBlock":{"statements":[{"@type":"Assign","name":"sum","id":"id_6045f9c5_0ad7_4acf_bff4_7e94d2885fc8","value":"x/1000+x/100%10+x/10%10+x%10"},{"newline":true,"@type":"Output","id":"id_27d4a69a_f72d_4319_bbd8_f2cd1a56ed5b","value":"\"La suma de todos los dígitos del número ingresado es: \""},{"newline":false,"@type":"Output","id":"id_ef7cee48_bc39_4654_a46d_4ac4721402ed","value":"sum"}],"id":"id_a380d1d6_f986_4d8b_b797_049425cce30b"},"condition":"x>999 && x<10000","@type":"If","id":"id_7fc1643e_844a_477b_8db0_93fd92b79d22"},{"@type":"Return","id":"id_f276a677_1077_4f0d_833b_57bc54caf5c4","maybeValue":null}],"parameters":[]},"id":"id_4210245d_fc6a_44bb_8042_0f7c3f94ca4c","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"python","showGenCode":true},"version":"0.2","revision":330}