by @Sérgio Faria Fork
{"functions":[],"name":"New Program","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_5869fa6e_f4e3_4240_8c8b_ecc4007f2dc0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"orcamento","lengthValue2":"5","id":"id_71877418_4189_4ae4_bae3_ed9b69adc235","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"gasto","lengthValue2":"5","id":"id_2514c5b2_fdff_489f_8fbc_54bab6000f6a","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"dias","lengthValue2":"5","id":"id_04511ce8_c0f0_49b1_8852_1cc9234dab2d","initValue":"0"},{"newline":true,"@type":"Output","id":"id_cfc26d1f_dd38_438b_b21c_3de98913d6af","value":"\"Qual o orcamento?\""},{"@type":"Input","name":"orcamento","id":"id_9efd6aae_d9d7_466a_98da_f55a6a3f4c0d","prompt":null},{"condition":"orcamento>0","@type":"While","id":"id_e284a252_ff8c_42f9_80df_7cdeefc9ccbc","body":{"statements":[{"@type":"Assign","name":"dias","id":"id_6e3806eb_3afa_4cc9_a78f_a9e63ce7ad6b","value":"dias + 1"},{"newline":true,"@type":"Output","id":"id_0987d249_947d_42d9_a8bc_e9539b76d180","value":"\"Quanto gastou no dia\" + dias + \"€\""},{"@type":"Input","name":"gasto","id":"id_e9f0f318_9083_43c4_97b4_4c12b5878fa4","prompt":null},{"@type":"Assign","name":"orcamento","id":"id_7cd14282_6230_418b_b493_3aed23124a7a","value":"orcamento - gasto"}],"id":"id_5207fd95_c3f8_465c_943c_65b2aa7da118"}},{"newline":true,"@type":"Output","id":"id_8b75e9a1_216b_4c92_943a_ed6875ca9bfe","value":"\"dias: \" + dias + \" - saldo: \" + orcamento + \"€\""},{"@type":"Return","id":"id_a9d9f08a_1b68_4085_816e_e83c5181e1ad","maybeValue":null}],"parameters":[]},"id":"id_1150c420_5b22_4722_9b52_a361774440b0","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":291}