by @Atharva Padwalkar Fork
{"functions":[],"name":"Restaurant bill","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_bd8bcf92_253d_4d2f_903f_648ae1d7fa5a"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"total","lengthValue2":"5","id":"id_2201751c_ccf2_40d4_8325_e53673571698","initValue":"0.0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"amount","lengthValue2":"5","id":"id_324967b8_ecb4_4044_883e_285857617996","initValue":"0.0"},{"condition":"amount >= 0","@type":"While","id":"id_5fe1cb9c_0655_4497_b22c_3805938f6ce8","body":{"statements":[{"newline":true,"@type":"Output","id":"id_00400e5b_c6bb_446b_802f_8658cfc2e2c4","value":"\"Enter the price (or 0 to calculate bill)\""},{"@type":"Input","name":"amount","id":"id_d07bacfd_153a_4a84_8dc4_0642ed17360e","prompt":null},{"falseBlock":{"statements":[{"@type":"Assign","name":"total","id":"id_b8f44092_e599_4d07_a8bd_e48823a5ba7a","value":"total + amount"}],"id":"id_2a3f4b35_af93_4d87_99cc_8deccd10b272"},"trueBlock":{"statements":[],"id":"id_b830a7b1_e09b_483d_b111_c08049149acd"},"condition":"amount == 0","@type":"If","id":"id_713b0639_dd55_4e51_af27_41e8d04fc31e"},{"newline":true,"@type":"Output","id":"id_8b0c77b7_3a47_4171_91e3_5fecbb13b983","value":"\"Your total is £\" + (total)"}],"id":"id_2f1d55ca_deed_4b0b_8ca2_f2914df09f77"}},{"@type":"Return","id":"id_5966f894_6871_4905_aabc_4f63797002f7","maybeValue":null}],"parameters":[]},"id":"id_abaa8d87_9e24_4975_95be_0fef6ada7697","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":386}