by @Martim Gonçalves Fork
{"functions":[],"name":"Exerc. 5.2","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_bf4bc704_b0c9_46c5_accc_0a6f70e6e82d"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"orcamento","lengthValue2":"5","id":"id_aea47da5_8219_4d79_a000_a0b5e17206aa","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"despesa","lengthValue2":"5","id":"id_24c1f09f_c7a8_4f0d_9ab9_32c61f143be2","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"dias","lengthValue2":"5","id":"id_0f90a5d5_c9bb_4fb7_9b35_98cffa93f630","initValue":"0"},{"newline":true,"@type":"Output","id":"id_2a50d1bf_fd16_4193_a6a9_0e123a7ff36c","value":"\"Qual é o orçamento ?\""},{"@type":"Input","name":"orcamento","id":"id_3dff9b34_ab8f_4ef2_bdbf_0f26a38ee918","prompt":null},{"condition":"orcamento > 0","@type":"While","id":"id_e6f51eb8_b062_4668_b3a1_64b08919091f","body":{"statements":[{"@type":"Assign","name":"dias","id":"id_f46ae19c_d120_4430_a9f5_a3bdea9f17b6","value":"dias + 1"},{"newline":true,"@type":"Output","id":"id_99a068de_ba27_4366_989a_e74f4aa5f5f1","value":"\"Quanto gastou no dia\" + dias + \"?\""},{"@type":"Input","name":"despesa","id":"id_4c063cfe_c852_43bb_aa8d_cb81f13aa5b3","prompt":null},{"@type":"Assign","name":"orcamento","id":"id_124f07c8_63d1_4a8e_8ca2_d23ca66bd76e","value":"orcamento - despesa"}],"id":"id_862c2cc5_7803_4697_9e2d_7c1325be0666"}},{"newline":true,"@type":"Output","id":"id_284ad86c_795c_436e_b5ea_3db9717e4e39","value":"\"Dias :\" + dias + \" - Saldo:\" + orcamento + \"€\""},{"@type":"Return","id":"id_0fca0952_6954_44d5_8fdc_1cac9ff88b36","maybeValue":null}],"parameters":[]},"id":"id_77c73c8d_2282_4670_89f0_0b387b964e2f","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":287}