by @Richard Martinez Fork
{"functions":[],"name":"New Program","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_927c5ade_fd9a_4062_977e_e797f93f5c96"},{"newline":true,"@type":"Output","id":"id_9f557d2b_3525_44f2_ae14_29b120262815","value":"\"desea calcular un circuito?\""},{"@type":"Declare","tpe":"Integer","name":"r1","id":"id_e8408b72_3561_4c25_b648_4f793fd7d544","initValue":null},{"@type":"Input","name":"r1","id":"id_66329e91_8680_4cc0_9490_ba4bac33b361","prompt":null},{"@type":"Declare","tpe":"Integer","name":"r2","id":"id_711d47d7_c163_454a_8716_e03835691873","initValue":null},{"@type":"Input","name":"r2","id":"id_6b947fcd_6ebc_412f_8dd5_487e77f5b8c7","prompt":null},{"@type":"Declare","tpe":"Integer","name":"r3","id":"id_ea58c26d_55ee_429c_937a_079fc804903b","initValue":null},{"@type":"Input","name":"r3","id":"id_8fffe7f0_b5bd_4310_81e4_620dd4c325f8","prompt":null},{"@type":"Declare","tpe":"Integer","name":"tipo","id":"id_cd54d992_e4d8_4e89_86ad_5afe6a2620a3","initValue":null},{"@type":"Input","name":"tipo","id":"id_993f9131_b676_4e8c_9989_eb53e54d5349","prompt":"seleccione el tipo de circuito"},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_2da6265b_06d8_44de_8908_b8475f1f902a","value":"\"ingrese un tipo valido\""}],"id":"id_c959c5d9_e509_4805_8744_50e36ee7ce2a"},"trueBlock":{"statements":[{"@type":"Declare","tpe":"Integer","name":"rtotal","id":"id_ec864c42_1d7e_4dc4_bc59_ed53c3c0c294","initValue":"1/(1/r2+r3)+(1/r1)"},{"newline":true,"@type":"Output","id":"id_e556d1e8_5c95_4b43_a1ba_f0ef181ad051","value":"rtotal"}],"id":"id_3253128f_9ab8_4e5f_89d2_8b72902cb5a0"},"condition":"tipo == m3","@type":"If","id":"id_191e891c_8575_4fe7_be13_f755fcb076f0"}],"id":"id_5e38195a_9985_4679_ade9_cb476190f389"},"trueBlock":{"statements":[{"@type":"Declare","tpe":"Integer","name":"rtotal","id":"id_ee3fee9c_ffe2_4d45_8262_f7a9e53c65f1","initValue":"1/(1/r1+r3)+(1/r2)"},{"newline":true,"@type":"Output","id":"id_092b5054_8cce_4710_a233_245cb895f2d4","value":"rtotal"}],"id":"id_53ca64d3_25e0_4bed_b55a_c6f00842fc15"},"condition":"tipo == m2","@type":"If","id":"id_65a38643_f31a_4a43_9cdf_a49387f2fe68"}],"id":"id_41214c92_db52_4f8b_8845_d468028ddba0"},"trueBlock":{"statements":[{"@type":"Declare","tpe":"Integer","name":"rtotal","id":"id_898b402e_1ae4_4547_ac86_05a90f4ca825","initValue":"1/(1/r1+r2)+(1/r3)"},{"newline":true,"@type":"Output","id":"id_75e25fcb_6fd8_4c80_8056_041c93a93881","value":"rtotal"}],"id":"id_496e5f2e_1990_404d_bf0d_409d93a6e9c2"},"condition":"tipo == m1","@type":"If","id":"id_0bac184b_cc10_4d7c_bd98_92fb1a19947f"}],"id":"id_8891c9b3_6c5d_4d67_a8be_b1d7679990be"},"trueBlock":{"statements":[{"@type":"Declare","tpe":"Integer","name":"rt","id":"id_be6a6987_d330_4c6e_be23_79cb26435341","initValue":"1/(1/r1+1/r2+1/r3)-((1/(1/r1+1/r2+1/r3)*0.1)"},{"@type":"Declare","tpe":"Integer","name":"lim","id":"id_67fce9a2_5715_4772_b2cf_8e79e8e3d26c","initValue":null},{"@type":"Input","name":"lim","id":"id_0c9f9407_cd71_458c_a104_bac1cec1b94c","prompt":null},{"falseBlock":{"statements":[{"@type":"Declare","tpe":"Integer","name":"rtotal","id":"id_6e8a1870_bc41_4eb1_b330_f021efeeef8e","initValue":"rt"}],"id":"id_93752e67_f6a8_4ebe_8fbd_21f3b1409f76"},"trueBlock":{"statements":[{"@type":"Declare","tpe":"Integer","name":"rtotal","id":"id_7b744603_fa7d_4a4f_83cf_f96cc1c2b97d","initValue":"rt-2"}],"id":"id_0b814707_a032_4097_8232_8e515f607967"},"condition":"rt < lim","@type":"If","id":"id_74821dd8_54f6_455a_830b_abb425da8cd4"},{"newline":true,"@type":"Output","id":"id_64d13ba2_0c44_4109_85ad_5d8e52819ede","value":"rtotal"}],"id":"id_2a312c90_b6e5_4427_8452_3ab2e43c91b7"},"condition":"tipo == p","@type":"If","id":"id_ea5a1b82_dcfd_4981_b558_7ddded2292ef"}],"id":"id_0b815cff_37a6_457b_bc9f_34a20fb837c5"},"trueBlock":{"statements":[{"@type":"Declare","tpe":"Integer","name":"rt","id":"id_0e949613_eb44_4fd5_97c6_46387fba1f02","initValue":"(r1+r2+r3)+((r1+r2+r3)*0.05)"},{"@type":"Declare","tpe":"Integer","name":"lim","id":"id_e225f05b_7c29_4deb_8315_2262634a3df8","initValue":null},{"@type":"Input","name":"lim","id":"id_f6209efc_9e40_438a_955e_47e00df69c77","prompt":null},{"falseBlock":{"statements":[{"@type":"Declare","tpe":"Integer","name":"rtotal","id":"id_f35917b8_4a24_4dad_a9db_957dacb750b5","initValue":"rt"}],"id":"id_7ffd94eb_a969_4cb1_8307_402b381f7c3b"},"trueBlock":{"statements":[{"@type":"Declare","tpe":"Integer","name":"rtotal","id":"id_4d2adb36_cc20_494d_9a23_e8f47d2facdb","initValue":"rt+20"}],"id":"id_973c2963_e51e_452b_83f6_934cc69211fa"},"condition":"rt > lim","@type":"If","id":"id_be8af4fa_0863_428a_b66a_fe2ac8760d68"},{"newline":true,"@type":"Output","id":"id_170a7bd7_9ab1_4533_a261_d835464fcc03","value":"rtotal"}],"id":"id_14f17a52_1d52_465f_8c1e_3ccac1e99e66"},"condition":"tipo == s","@type":"If","id":"id_9663dee4_8b2a_4a8f_9ca3_a57c1cea7c3b"},{"@type":"Return","id":"id_e42e0aaf_1a97_4e71_b1d4_6b5897124dd1","maybeValue":null}],"parameters":[]},"id":"id_2997fa08_cba6_44e6_ba3a_83a7e2bb1507","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"python","showGenCode":true},"version":"0.2","revision":860}