by @Tubilag Mark Anthony A. Fork
{"functions":[],"name":"Withdrawal","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_07b1a990_ecd3_470f_af83_a5d5e0b577ba"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"balance","lengthValue2":"5","id":"id_8f0d7ca8_69e2_480e_b85e_6eb30e7a8cfa","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"withdrawal","lengthValue2":"5","id":"id_288f7211_e0b0_4253_9122_8b7412e2f30a","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"newbalance","lengthValue2":"5","id":"id_fec8cd34_a513_415f_b27f_01a2beb50fd0","initValue":null},{"@type":"Input","name":"balance","id":"id_3edfe714_5b7d_4d6c_90ed_2bba3e5d0d23","prompt":"Please enter x:"},{"@type":"Input","name":"withdrawal","id":"id_2269c84f_5930_4474_a0b9_3bb5a6bc047c","prompt":"Please enter x:"},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_150a3dbd_1f60_45fb_b2f2_e131bfd5cf1a","value":"\"inavalid\""}],"id":"id_532120ba_d70a_4914_9ca1_99060a9ee6a0"},"trueBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_e54d577c_9163_4008_bb7a_f6cd4d8b7713","value":"\"insufficient\""}],"id":"id_33f4ac4e_6075_4b50_9087_ae6feaeac76a"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_4e556980_1868_454b_b2f2_1cedd067196a","value":"\"newbalance = balance - withdraw\""},{"newline":true,"@type":"Output","id":"id_bedf00f9_16bb_45a8_a336_e75ca668ce96","value":"\"withdrawal succcessful\""},{"newline":true,"@type":"Output","id":"id_92c33999_93e7_4317_874c_de7ad6c01a4f","value":"\"newbalance\""}],"id":"id_62bd9d3f_d3ae_4e9b_a7ba_08b9114505f7"},"condition":"withdrawal <= balance","@type":"If","id":"id_a3ab3e73_541d_44b2_ad28_af314edf0deb"}],"id":"id_6068ab8a_8b6e_4f87_952c_263d294962fe"},"condition":"withdrawal > 0","@type":"If","id":"id_708be5d2_a0e0_46d9_a109_ea1f20101f88"},{"@type":"Return","id":"id_1f03bde6_cbad_40ed_935d_3ba3026a8f3b","maybeValue":null}],"parameters":[]},"id":"id_c6050fa0_a965_40ba_bb0c_733d55045cad","config":{"showDebugVars":true,"useInputPrompt":true,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"python","showGenCode":true},"version":"0.3","revision":344}