by @Rhys Chohan Fork
{"functions":[],"name":"num45","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_25942ad1_6a80_4d81_9c49_0fb95a3fe836"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"total","lengthValue2":"5","id":"id_fc308163_b2fa_4e7a_9125_5153f7251dd8","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"amount","lengthValue2":"5","id":"id_2ec9b0cf_d12e_42a3_9031_e77ea3d5f19b","initValue":"0"},{"condition":"amount >= 0","@type":"While","id":"id_0285fffd_2d78_4879_bf79_cc373e094f38","body":{"statements":[],"id":"id_3bc4e289_a3a7_4e77_838b_49b4966ddac8"}},{"@type":"Return","id":"id_8509a712_1f34_4619_a906_2f0c37e0f620","maybeValue":null}],"parameters":[]},"id":"id_2eabb7c4_fc20_4a3b_9ef3_7594edd805de","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":52}