by @mary sousa Fork
{"functions":[],"name":"algo 1","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_04d31b5b_df0d_4d57_94df_d7e939852115"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"distancia","lengthValue2":"5","id":"id_883b102b_c082_4d8e_8909_4ed0339d4881","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"consumo","lengthValue2":"5","id":"id_7932c486_d4fe_4b18_9945_68da08e78dca","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"preco","lengthValue2":"5","id":"id_ae30694d_0078_4c1b_bd15_75194b05a2d2","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"litros","lengthValue2":"5","id":"id_413f4e75_d5d8_4f2b_9040_4bf70b6a1f5c","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"custo","lengthValue2":"5","id":"id_80b71310_82ca_400a_980a_618eb81f66f7","initValue":null},{"@type":"Input","name":"distancia","id":"id_e79da097_7043_400b_bec4_1f4fc5a9bcfe","prompt":"Please enter x:"},{"@type":"Input","name":"consumo","id":"id_e0537416_5cee_4738_a419_2b6c82e45b55","prompt":"Please enter x:"},{"@type":"Input","name":"preco","id":"id_042b54ea_d43b_4e2c_a753_091e2a57b56b","prompt":"Please enter x:"},{"falseBlock":{"statements":[{"@type":"Assign","name":"litros","id":"id_b0f93c8b_781e_4b86_9589_a42a0edb05cf","value":"distancia/consumo"},{"@type":"Assign","name":"custo","id":"id_942f438e_7767_49c4_8880_2c5a215724f5","value":"litros*preco"},{"newline":true,"@type":"Output","id":"id_67275b8d_3a11_4056_bfb4_1ed63f432445","value":"\"litros necessarios:\"+litros"},{"newline":true,"@type":"Output","id":"id_bd1875e1_4710_4062_9b69_47bb503387b9","value":"\"Custo estimado:\" + custo"}],"id":"id_2b61ccba_5b58_4798_8640_8047891f5acf"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_cff81eb3_db06_4de7_bb63_01819f328546","value":"\"Dados invalidos\""}],"id":"id_44bdd7b6_0f0a_4696_912f_c80aa409f4bd"},"condition":"distancia<0 || preco<0 || consumo<=0","@type":"If","id":"id_ea4f3abd_f9e2_4c73_86e1_39f7d8430e3b"},{"@type":"Return","id":"id_4178591c_566a_4501_a2cc_5cb6e9fe4e53","maybeValue":null}],"parameters":[]},"id":"id_9189cf73_be26_4543_87cb_3b4980f1efac","config":{"showDebugVars":true,"useInputPrompt":true,"echoEnteredValue":true,"showIoBtns":true,"showFunctions":true,"lang":"java","showGenCode":true},"version":"0.3","revision":611}