by @Felipe Londono Aristizabal Fork
{"functions":[],"name":"38 taller decisiones","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_982899ff_ac1f_4766_aa32_463d1d81d18e"},{"@type":"Comment","id":"id_04264df4_156d_435e_a184_40fa3dfb19ee","text":"Programa que lee un número entero de cinco dígitos y determina cual es el digito mayor."},{"@type":"Declare","tpe":"Integer","name":"x","id":"id_f1507d04_72f8_4993_99cb_74ecc6663185","initValue":"0"},{"@type":"Input","name":"x","id":"id_90232a62_aa34_4dd1_acbc_b63828b69e12","prompt":"Ingrese un número de 5 dígitos"},{"@type":"Declare","tpe":"Integer","name":"d1","id":"id_13dea2a8_17bf_4492_8f6b_1e34e4122053","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"d2","id":"id_0a3061bb_6a34_4510_a3f7_cb6f6eeb4d6a","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"d3","id":"id_1f07130c_3ded_47db_897d_e701578d53d6","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"d4","id":"id_e63b71da_2512_4f54_a91e_2ee53e4073e0","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"d5","id":"id_e7932ccf_c102_48ac_801e_08657e02ca21","initValue":"0"},{"@type":"Assign","name":"d1","id":"id_804f07b6_c316_4e2f_ab6e_6b373c26042c","value":"x/10000"},{"@type":"Assign","name":"d2","id":"id_50751376_85c9_4ef0_a789_1c4689630175","value":"x/1000%10"},{"@type":"Assign","name":"d3","id":"id_6d89a7b3_c95d_4ff2_9fa3_b3b62f6d214b","value":"x/100%10"},{"@type":"Assign","name":"d4","id":"id_ed5560ef_4ac0_4c89_ac26_ff7d911580bc","value":"x/10%10"},{"@type":"Assign","name":"d5","id":"id_c61269bf_f4d7_40a4_80d1_91f8c0f6e453","value":"x%10"},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[],"id":"id_66a92d62_49c0_42cf_a110_89e771ec078a"},"trueBlock":{"statements":[{"newline":false,"@type":"Output","id":"id_1f12cdf3_a31e_46dc_9867_3968638a85ff","value":"\"Todos los dígitos son iguales.\""}],"id":"id_73231aed_eadc_47aa_a828_46d30a0c813b"},"condition":"d1==d2 && d2==d3 && d3==d4 && d4==d5","@type":"If","id":"id_3708823b_cdd2_4b44_bdd6_bac6714612f4"}],"id":"id_51019e0d_4f94_469b_b7e7_da891ba5b64a"},"trueBlock":{"statements":[{"newline":false,"@type":"Output","id":"id_883bf932_cb9a_4a61_a975_62b4114e03a3","value":"d5"},{"newline":false,"@type":"Output","id":"id_d6b7c484_a959_46a0_a4e9_401154c66610","value":"\" es el dígito mayor\""}],"id":"id_bf83bba6_ef62_4a5d_ba25_805a5a682b40"},"condition":"d5>d2 && d5>d3 && d5>d4 && d1<d5","@type":"If","id":"id_69bd0960_ff4e_4b42_8765_aabb728c8d41"}],"id":"id_9dc991a9_2e4a_4133_b26b_81bfa8f7b823"},"trueBlock":{"statements":[{"newline":false,"@type":"Output","id":"id_1fec1971_f4bf_4f99_99d9_4ea9789a615e","value":"d4"},{"newline":false,"@type":"Output","id":"id_a2ff9a7e_acd0_4631_b7b8_d524f214954a","value":"\" es el dígito mayor\""}],"id":"id_529caaf7_cb36_4301_9346_927853617648"},"condition":"d4>d2 && d4>d3 && d1<d4 && d4>d5","@type":"If","id":"id_18cfeebe_ecdf_4d5e_9a34_9e05e7a9ad26"}],"id":"id_73551a30_6249_4795_82a7_b03c428e8dea"},"trueBlock":{"statements":[{"newline":false,"@type":"Output","id":"id_58e59c67_8989_4e23_a349_78dcbcada965","value":"d3"},{"newline":false,"@type":"Output","id":"id_c952c397_d18e_4088_b686_d9aa4ba86121","value":"\" es el dígito mayor\""}],"id":"id_fd310a9a_8c0e_4226_a6ba_315035f4e088"},"condition":"d3>d1 && d3>d2 && d3>d4 && d3>d5","@type":"If","id":"id_4a5f02b8_055b_44ea_a959_4865c10497e7"}],"id":"id_bf1ad635_949c_4ebb_864c_10e4deca1ec0"},"trueBlock":{"statements":[{"newline":false,"@type":"Output","id":"id_ff8122a1_09bf_426a_b3d9_df2c067a03ac","value":"d2"},{"newline":false,"@type":"Output","id":"id_7eec0a8c_56f0_4356_8a4f_b8d7f6b0b82d","value":"\" es el dígito mayor\""}],"id":"id_d4e24afc_f291_44e1_885e_e427ef471b33"},"condition":"d2>d1 && d2>d3 && d2>d4 && d2>d5","@type":"If","id":"id_bf30d738_dd41_45da_912b_4710a74f5e78"}],"id":"id_fda48bf3_7596_4991_affe_b3643cde6bc1"},"trueBlock":{"statements":[{"newline":false,"@type":"Output","id":"id_c76fbb89_2c15_4e92_b7df_a05f48a60bd9","value":"d1"},{"newline":false,"@type":"Output","id":"id_9e93b199_068d_43d2_a10f_6b6ca58a8d67","value":"\" es el dígito mayor\""}],"id":"id_81815fce_edd3_42b3_8852_8837c8ac5bcb"},"condition":"d1>d2 && d1>d3 && d1>d4 && d1>d5","@type":"If","id":"id_4f2688b8_aca7_4095_923f_3f9b7bed5707"},{"@type":"Return","id":"id_e6f53302_f6d4_4135_bb1c_fbe0d9be4287","maybeValue":null}],"parameters":[]},"id":"id_796b3dfd_6c32_4683_91ae_722849abcba2","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"python","showGenCode":true},"version":"0.2","revision":484}