by @Felipe Londono Aristizabal Fork
{"functions":[],"name":"16 taller secuencia","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_729bec50_f59a_4858_b51f_250e2b6db172"},{"@type":"Comment","id":"id_43f067b9_1161_49c5_bcbf_dca53c7a2048","text":"Dado un número de 4 cifras, calcular la suma de cada uno de los digitos"},{"@type":"Declare","tpe":"Integer","name":"d1","id":"id_113f3f1f_b372_4b08_829c_8b2c6158a056","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"d2","id":"id_50fae5ca_1c62_4cea_9098_54c8311fe42f","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"d3","id":"id_32be43d7_3ee9_494c_8ea7_5ef7db638045","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"d4","id":"id_d95d0ff9_268f_45d7_a283_3d773bcb732a","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"suma","id":"id_da968d63_fff9_4201_9fd7_4c9cfe9d97b5","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"num","id":"id_c4b7c43f_4618_43a2_981a_6bf042fb0615","initValue":null},{"@type":"Input","name":"num","id":"id_2b9dd1c9_b13e_4bd9_b560_b507edbff224","prompt":"Ingrese el número"},{"@type":"Assign","name":"d1","id":"id_9d4ea964_eb9b_4681_8fcc_3b2b3a7cc463","value":"num/1000"},{"newline":true,"@type":"Output","id":"id_7ddcaf44_c4d9_44dc_80d0_996b47bf0ac5","value":"d1"},{"@type":"Assign","name":"d2","id":"id_e7225a9b_6173_4f69_bdc5_99d6f6120593","value":"(num/100)%10"},{"newline":true,"@type":"Output","id":"id_a7b148b4_2682_4cb5_96dd_fa6b9362b7ec","value":"d2"},{"@type":"Assign","name":"d3","id":"id_b9836bd9_67fe_401a_972a_d1403625074e","value":"(num/10)%10"},{"newline":true,"@type":"Output","id":"id_45c979b8_f4c4_4513_b878_ff804ab61316","value":"d3"},{"@type":"Assign","name":"d4","id":"id_0b56c593_146d_400e_809e_ea54426c5832","value":"num%10"},{"newline":true,"@type":"Output","id":"id_16530e3f_c056_4989_8c4e_c7ac419f40a7","value":"d4"},{"@type":"Assign","name":"suma","id":"id_f165ad3c_6ca5_44c9_b2f4_7a60dfea8147","value":"d1+d2+d3+d4"},{"newline":true,"@type":"Output","id":"id_b484b27a_14ee_47dd_baa6_a85451f40343","value":"suma"},{"@type":"Return","id":"id_8212a987_a1ea_47a8_a72c_5cca2c9143fb","maybeValue":null}],"parameters":[]},"id":"id_f2f09f26_3ad9_4a9f_87bd_62c412e37a53","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"python","showGenCode":true},"version":"0.2","revision":305}