by @Gervas Bona Fork
{"functions":[],"name":"Restaurant bill","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_de4164b1_11bf_42ff_94c1_f99ffc391def"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"count","lengthValue2":"5","id":"id_c84789f2_586d_43f0_9c6c_ee1f8226fb88","initValue":null},{"newline":true,"@type":"Output","id":"id_18776e1d_691c_43f2_9862_497d7f2f6e7f","value":"\"what is the price of the next item(in pounds )?\""},{"@type":"Input","name":"count","id":"id_41047ea5_dea1_4d82_9125_1e4c108fa0b9","prompt":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"bill","lengthValue2":"5","id":"id_c594be50_e48f_43bf_ad32_c8daa21de1fc","initValue":"count"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"add","lengthValue2":"5","id":"id_140c85e3_e0ca_47fb_b581_ee0e763f0ed4","initValue":null},{"condition":"bill!=0","@type":"While","id":"id_0c1c731c_d265_4551_96a3_12f8b1a215a7","body":{"statements":[{"newline":true,"@type":"Output","id":"id_2e745558_73db_4e05_b832_0da4e4d46128","value":"\"what is the price of the next item ?\""},{"@type":"Input","name":"add","id":"id_9cb762f2_45ff_4375_bde8_281ae6cfe2f9","prompt":null},{"@type":"Assign","name":"count","id":"id_c514d30f_7d99_4f60_85d5_86831ba68eb2","value":"count+add"},{"@type":"Assign","name":"bill","id":"id_819ae2ba_28b5_470e_bd98_afed8b86e47c","value":"count"}],"id":"id_5bd72d9e_6291_44ed_91a4_64242c361c16"}},{"newline":true,"@type":"Output","id":"id_8bdba5fd_6ac4_4646_a99c_dee946b006d0","value":"\"your final bill is \"+bill+\"pounds\""},{"@type":"Return","id":"id_e4632db3_c186_4d8d_9511_b901f1c62aa0","maybeValue":null}],"parameters":[]},"id":"id_3a782f5d_34cc_4e96_b1dc_67d95abf432b","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":367}