{"functions":[],"name":"New Program","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_c1826b4e_9a6f_4f35_ab44_3bf8a075b9c3"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"lugares","lengthValue2":"5","id":"id_e4e72815_d7a9_473c_b94c_f8507c352818","initValue":"20"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"bilhetes","lengthValue2":"5","id":"id_5829119b_d98f_457f_bc28_f3c7d5f0182d","initValue":"0"},{"condition":"lugares>0","@type":"While","id":"id_a3fb9f40_1d4d_4286_b45e_918cc8483325","body":{"statements":[{"newline":true,"@type":"Output","id":"id_0822dba0_3aa4_40f9_a9e0_34de4b098c7b","value":"\"quantos bilhetes?\""},{"@type":"Input","name":"bilhetes","id":"id_fb001e04_422b_463b_92ea_16acf986c023","prompt":null},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_70324a0e_44fe_4b7b_84c0_dd05fad82e4e","value":"\"so restam\" + lugares + \"lugares\""}],"id":"id_5a70c307_6cae_4299_bee0_106799735548"},"trueBlock":{"statements":[{"@type":"Assign","name":"lugares","id":"id_e6f6b623_0aca_420a_84e7_62d4dd67f12f","value":"lugares - bilhetes"},{"newline":true,"@type":"Output","id":"id_108e4d66_2e0d_4656_8da5_1059b8c97bd7","value":"\"restam\" + lugares + \" lugares\""},{"@type":"Input","name":"lugares","id":"id_89743068_ed2d_41de_930f_7c9b962eacbf","prompt":null}],"id":"id_57430943_9f08_4a46_adab_16b8cdce7cc0"},"condition":"bilhetes <= lugares","@type":"If","id":"id_0ad05e16_8923_4ebd_98a6_11b241ca3e99"},{"@type":"Input","name":"x","id":"id_4e6b8f77_29ed_4c1c_8e74_bf4ea67ec474","prompt":null}],"id":"id_12b4bf8c_fb33_400d_91e1_ed9b03612b7a"}},{"newline":true,"@type":"Output","id":"id_61704094_0363_493a_b64b_89ca8a4d2197","value":"\"esgotado\""},{"@type":"Return","id":"id_3ccf39d4_19cf_46a3_a048_a42e20da9a05","maybeValue":null}],"parameters":[]},"id":"id_baa6dd52_76f4_4569_ad45_08410e24995b","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":378}