by @mariana carvalho Fork
{"functions":[],"name":"bilhetes para passeio de barco","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_0e5bf3b3_81d2_4d13_917b_6eeab78b5b89"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"lugares","lengthValue2":"5","id":"id_e19ba77f_bbc8_4ec1_a6fa_6a1c831ea245","initValue":"20"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"bilhetes","lengthValue2":"5","id":"id_52e1773d_3c5f_44c6_9067_cd13d69dd77f","initValue":null},{"condition":"lugares > 0","@type":"While","id":"id_87084d05_e0cb_41b7_8f9d_75f12b0ea297","body":{"statements":[{"newline":true,"@type":"Output","id":"id_7879a94b_2d9a_482e_b391_e55ecd59b5ce","value":"\"Quantos bilhetes? \""},{"@type":"Input","name":"bilhetes","id":"id_591122ea_6c2c_4b44_91dc_5890b0e20743","prompt":null},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_6386cc60_2a7f_4ea1_9a95_ebb90b71b370","value":"\" Só restam \" \"+ lugares \" + \"lugares\""}],"id":"id_06363ccf_6cdf_4f29_b527_52e70376e937"},"trueBlock":{"statements":[{"@type":"Assign","name":"lugares","id":"id_52e7c83f_8a5d_4239_9d2d_356ed1d0ae8a","value":"lugares-bilhetes"},{"newline":true,"@type":"Output","id":"id_1abedb4f_e7a8_4b08_b234_6cab3b434e4e","value":"\"Restam \" + lugares+ \"lugares\""}],"id":"id_217faaaa_3ef5_40e2_99b0_feb0809dc5ef"},"condition":"bilhetes <= lugares","@type":"If","id":"id_41228cec_c76d_4bdb_9ae0_288d22a2e47b"}],"id":"id_d25aa680_0868_4200_a7e4_ff1b8a20db01"}},{"newline":true,"@type":"Output","id":"id_16e8cef1_edac_4805_88ea_944647caee79","value":"\"esgotado\""},{"@type":"Return","id":"id_0b3b3e4d_33c8_48ce_bca0_c8fc1b723097","maybeValue":null}],"parameters":[]},"id":"id_85251357_f72e_4b82_8bdf_6fb74ce1031b","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":521}