{"functions":[],"name":"New Program","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_8e4e680d_5bac_49c2_b1ee_2d43fc25bfb0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"lugares","lengthValue2":"5","id":"id_03b4017d_5b89_4720_9211_180f7d91c98c","initValue":"20"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"bilhetes","lengthValue2":"5","id":"id_f9eaa359_eec2_4403_924a_0d2121329197","initValue":"0"},{"newline":true,"@type":"Output","id":"id_f18f2231_fa73_4b4e_a946_c156ed1d28d0","value":"\"quantos bilhetes quer?\""},{"@type":"Input","name":"bilhetes","id":"id_63cd9606_e74d_452f_99d4_1cfa492e7cdc","prompt":null},{"condition":"lugares>0","@type":"While","id":"id_3939b700_ff6f_456f_a739_cc8976e3964c","body":{"statements":[{"newline":true,"@type":"Output","id":"id_e7ae5e17_46fa_4d4f_ad97_b66e7a54608c","value":"\"bilhetes comprados?\""},{"@type":"Input","name":"bilhetes","id":"id_49a18e41_621b_4829_9bb5_f5050feb64e1","prompt":null},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_b3d97875_7f23_4eb4_9f56_da270ebaed5c","value":"\"so restam \" + lugares + \" lugares\""}],"id":"id_ad9027a1_3e9a_448d_adb2_3887d09894d6"},"trueBlock":{"statements":[{"@type":"Assign","name":"lugares","id":"id_e6624a70_89fd_4862_a26d_b563d74add5d","value":"lugares - bilhetes"},{"newline":true,"@type":"Output","id":"id_0c245d21_8e18_4fab_80fe_ebaa4c41e44c","value":"\"lugares restantes \" + lugares + \" lugares\""}],"id":"id_11814a21_bccc_4ab8_91b0_2cc7a2044fb6"},"condition":"bilhetes<=lugares","@type":"If","id":"id_35e02d23_ce13_439e_ab09_88fd48f6cbd9"}],"id":"id_632b7450_61ee_4d08_80ec_14e38b888754"}},{"newline":true,"@type":"Output","id":"id_f4052b8a_9754_40e4_a2af_8255c032815e","value":"\"esgotado!\""},{"@type":"Return","id":"id_e2138453_edae_4872_92df_8cd22565a4d5","maybeValue":null}],"parameters":[]},"id":"id_0acd6ce6_dfe8_43c3_8a95_d3c41fc4eb9f","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":470}