by @ZOYA SHERAZ KHAN Fork
{"functions":[],"name":"New Program","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_01c4693a_8402_4649_a852_0723c357df34"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"price","lengthValue2":"5","id":"id_2fef3f10_33e4_4a0f_bfb8_9ef8309f828a","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"discount","lengthValue2":"5","id":"id_a1ecea17_c09d_48e2_8a3f_bf54da3b08eb","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"discountAmount","lengthValue2":"5","id":"id_986ea746_c5a2_459a_8aa6_3ad1cd5e7d84","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"finalPrice","lengthValue2":"5","id":"id_6ee9b257_9f1a_4b91_9890_a06336d37885","initValue":"0"},{"@type":"Input","name":"price","id":"id_6cfe169b_048c_4675_ac00_cbb1a2b3685c","prompt":"\"Enter Price\""},{"@type":"Input","name":"discount","id":"id_f4558c69_4ee2_4ff4_9eec_c3f3c058ee12","prompt":"\"Enter Discount\""},{"@type":"Assign","name":"discountAmount","id":"id_a3fbb794_7627_4bd3_949e_78327b23243c","value":"(price * discount) / 100"},{"@type":"Assign","name":"finalPrice","id":"id_05109c34_ef16_484e_acee_3fe0e1550d2e","value":"price - discountAmount"},{"newline":true,"@type":"Output","id":"id_89045908_26ec_4b43_86be_0a5faa43e66f","value":"discountAmount"},{"newline":true,"@type":"Output","id":"id_8c8c0646_7581_4a0f_a0ca_d6c10338550f","value":"finalPrice"},{"@type":"Return","id":"id_316a2a92_06c8_4a17_83d1_f37617f32ef3","maybeValue":null}],"parameters":[]},"id":"id_67d6c6a4_72f3_420d_a1a5_04432a2c67ab","config":{"showDebugVars":true,"useInputPrompt":true,"echoEnteredValue":true,"showIoBtns":true,"showFunctions":false,"lang":"c++","showGenCode":true},"version":"0.3","revision":308}