{"functions":[],"name":"Exercicio 5.2","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_dfdf0ee2_091e_4054_9d19_e4866544a1fc"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"dias","lengthValue2":"5","id":"id_68cddc54_b0bb_4443_acad_7ddf6e5b9a30","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"orcamento","lengthValue2":"5","id":"id_c4f38dd4_de7f_4b50_987a_887c2852d204","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"gasto","lengthValue2":"5","id":"id_a7f71147_19eb_4c93_acc1_3125c2203300","initValue":null},{"newline":true,"@type":"Output","id":"id_e61aadee_ef2a_424d_881d_72487b8078a1","value":"\"Qual o orçamento?\""},{"@type":"Input","name":"orcamento","id":"id_dc55b9b2_0359_4b81_8cb2_d770bbb8048c","prompt":null},{"condition":"orcamento > 0","@type":"While","id":"id_50940275_d3bd_46cf_903d_5ef28df041aa","body":{"statements":[{"@type":"Assign","name":"dias","id":"id_1a099a2d_fd74_4d8c_9359_535c08ede470","value":"dias + 1"},{"newline":true,"@type":"Output","id":"id_44f4928c_19a1_470b_b28e_7effd6f4eff4","value":"\"Quanto gastou no dia \" + dias + \"?\""},{"@type":"Input","name":"gasto","id":"id_e590c979_7284_4fc7_8b77_22ee35e5c227","prompt":null},{"@type":"Assign","name":"orcamento","id":"id_0d43b4c3_c8e6_456e_96aa_7803142e721c","value":"orcamento - gasto"}],"id":"id_da31b7e9_12a7_45d1_8e90_34e9dc64f76d"}},{"newline":true,"@type":"Output","id":"id_69c0114a_62c7_47e0_b35d_808930b0d9d0","value":"\"Dias: \" + dias + \" - Saldo: \" + orcamento + \"€\""},{"@type":"Return","id":"id_b86d2a3e_29a2_4107_8fcf_1361b7b77f44","maybeValue":null}],"parameters":[]},"id":"id_3cbe40c5_1daf_48d2_a412_5054643a564b","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":191}