by @José Alberto Albino da Silva Fork
{"functions":[{"rawId":"id_3ef8d2c6_eda0_4825_be3b_75d67b279346","tpe":"Void","name":"fun1","statements":[{"@type":"Begin","id":"id_26f81171_d949_491e_8868_f8976d0e69fb"},{"@type":"Return","id":"id_13afd5dc_4a2c_419b_9e82_66ea3d26b6d6","maybeValue":null}],"parameters":[]}],"name":"julgamento","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_a8342d95_e073_47f6_a34e_56141eefdb9b"},{"@type":"Declare","tpe":"Real","name":"altura","id":"id_eb41f6b8_fb65_49aa_8a43_e62842bba894","initValue":null},{"@type":"Input","name":"altura","id":"id_0982ee4f_c7c2_4e29_9da9_aa5255a0bada","prompt":"Por favor, informe a sua altura:"},{"@type":"Declare","tpe":"Real","name":"peso","id":"id_498a3ebe_953f_4b44_813c_282b05c90b5e","initValue":null},{"@type":"Input","name":"peso","id":"id_6e0c0749_efdf_4449_bf7d_0212fa83ac63","prompt":"Por favor, informe o seu peso"},{"@type":"Call","id":"id_ee9add15_1557_49f4_aa3e_1c7162125668","value":"bmi(altura, peso)"},{"newline":true,"@type":"Output","id":"id_45995d50_c79c_4a53_883b_24009d88a2ed","value":"\"Seu IMC é de obesidade grau III, bmi\""},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_771250f5_db4e_433f_825d_20a1197fa7ab","value":"\"IMC de magreza\""}],"id":"id_a5b8b05b_5e82_4cc6_adfb_7c760f4df8b3"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_3b2a3268_5ef8_43a9_9614_8887891cbc38","value":"\"IMC normal\""}],"id":"id_8fe53247_e529_4b57_93c7_c52c57646233"},"condition":"imc > 18.5","@type":"If","id":"id_d632684f_d08a_42ef_a88d_dcc7a7037821"}],"id":"id_3bbc6d1e_7518_445d_9f7e_13530e4b427c"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_3f56bd25_c5c7_421f_943d_0c157f24bfcc","value":"\"Seu IMC é de sobrepeso\""}],"id":"id_30b1fb7b_f3f0_4306_a899_02ad77cd20f1"},"condition":"imc > 25","@type":"If","id":"id_8821d2f2_0200_4287_936e_c0f7dee0bf0d"}],"id":"id_2135b8d2_feef_40a1_a984_1b7becbf8167"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_ca29e7d2_00da_4be7_8fa9_8d1d80c98241","value":"\"Seu IMC é de obesidade grau I\""}],"id":"id_fe20ed39_150c_4ce6_b3f9_51132c3de459"},"condition":"imc > 30","@type":"If","id":"id_126c1346_a04b_47d8_ab55_0ac5c2d65fbf"}],"id":"id_724515ba_97ed_4a81_a318_4f91e5ed8561"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_06de491a_42e0_4482_acda_4aa3d5e7ab3d","value":"\"IMC de obsidade grau II\""}],"id":"id_dbbe9c85_c4b8_4fd4_9ef3_264ae11abd7e"},"condition":"imc>35","@type":"If","id":"id_c15aaf07_06f8_4dfc_8870_cf3df20f1150"}],"id":"id_bca6e0ff_b808_42a6_a641_2efaff508d04"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_8f7ec9aa_e54f_4cd4_a4a5_ff2b02deee5a","value":"\"Seu IMC é de obesidade grau III, bmi\""}],"id":"id_921adda6_e78c_45e2_8fbd_515a5f6cc3f4"},"condition":"bmi > 40","@type":"If","id":"id_f04f999d_274a_4ee6_85b7_bc8c84d3b8c4"},{"@type":"Return","id":"id_8dc7fb2b_83e7_4094_b45b_146e37e7abd6","maybeValue":null}],"parameters":[]},"id":"id_b03e48c5_30d9_4093_8ec7_c72e3c411985","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"javascript","showGenCode":true},"version":"0.2","revision":726}