by @mariana carvalho Fork
{"functions":[],"name":"orcamento das ferias","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_f5284fe3_9ab7_435b_ba69_4d92989c3912"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"orcamento","lengthValue2":"5","id":"id_0e24d6b4_b7da_4786_9fd2_087957052f9a","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"despesa","lengthValue2":"5","id":"id_a500e3e1_8bd0_4232_8207_ae3b15c95166","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"dias","lengthValue2":"5","id":"id_f737d95b_5e6d_4ed5_9af9_9acb9f1a8597","initValue":"0"},{"newline":true,"@type":"Output","id":"id_254c7ccb_c1e9_4096_9f8e_b08b6da6de59","value":"\"Qual é o orçamento?\""},{"@type":"Input","name":"orcamento","id":"id_f0720653_05c3_46f3_bd10_ab73d55ad3db","prompt":null},{"condition":"orcamento >0","@type":"While","id":"id_a1498c63_79fb_43cd_be62_fc7a364824a2","body":{"statements":[{"@type":"Assign","name":"dias","id":"id_3d69fc97_0677_4734_9d3a_d34a051ce87e","value":"dias + 1"},{"newline":true,"@type":"Output","id":"id_1494d892_7fee_4323_bdf7_d2767e87c4c9","value":"\"Quanto gastou no dia \"+ dia"},{"@type":"Input","name":"gasto","id":"id_2c47f413_d9fe_4ac8_9785_1faad1d2b2d2","prompt":null},{"@type":"Assign","name":"orcamento","id":"id_115aef95_a7d8_4dd6_a8c9_df0fb4b89f7f","value":"orcaemento - gasto"}],"id":"id_1f51f316_4bce_4244_b34a_0f0ee36845b6"}},{"newline":true,"@type":"Output","id":"id_eed759f4_8820_4121_8dc9_ab2abd8c75db","value":"\"Dias:\"+ dias + \" -Saldo: \" orcamento + \"€\""},{"@type":"Return","id":"id_eb35ee11_f093_4a00_bc63_27ae7d538541","maybeValue":null}],"parameters":[]},"id":"id_6e24d9fe_6396_4a4f_85c2_e312a7912733","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":424}