by @ISAIAH PAWENAPAKORN Fork
{"functions":[{"rawId":"id_b2f73a45_fe7e_4603_8b7b_3b514a70ea90","tpe":"Integer","name":"equation","statements":[{"@type":"Begin","id":"id_ee1e0f2a_03a1_4614_bc95_f9614d8d69bf"},{"@type":"Declare","tpe":"Integer","name":"sumF","id":"id_270df1cb_9257_430e_85ed_862aea309e7f","initValue":null},{"varName":"i","incr":"1","@type":"ForLoop","start":"1","end":"n","id":"id_d5173535_dccf_4db2_b664_0f6ce64c5c23","body":{"statements":[{"@type":"Assign","name":"sumF","id":"id_250d7046_3cdb_4f84_a90e_8b120e023f6e","value":"sumF + (2 * i + 4)"}],"id":"id_78d8f036_1561_4222_a2f9_6b198a2694a1"}},{"@type":"Return","id":"id_cecdd576_aaef_4acb_a7be_2ef1aa2d3c96","maybeValue":"sumF"}],"parameters":[{"tpe":"Integer","name":"n","id":"dd03be04-eeda-4a9b-9562-f4be116da45f"}]}],"name":"calculate from keyboard","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_3c91434f_d469_4002_8a4a_b749666d10c2"},{"@type":"Declare","tpe":"Integer","name":"n","id":"id_f4e421e4_c0f8_4e69_ad0c_e2705c6ac905","initValue":null},{"@type":"Input","name":"n","id":"id_adc18204_d29c_4d35_b8a6_15512ecae5a7","prompt":"Please enter the number you want to calculated"},{"@type":"Call","id":"id_2a30ac38_f1dc_4c84_b197_d7373d470563","value":"equation(n)"},{"@type":"Assign","name":"SumF","id":"id_71a6285f_f1f2_46ee_8c21_f8646ab17be8","value":"equation(n)"},{"newline":true,"@type":"Output","id":"id_058115ed_9f31_4196_ab98_301eb9f99569","value":"sumF"},{"@type":"Return","id":"id_30ba91d9_d8dd_4dc6_97bc_77b6048e2dc5","maybeValue":null}],"parameters":[]},"id":"id_74fca24d_3586_4479_8a40_59a1a6773ec2","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"python","showGenCode":true},"version":"0.2","revision":490}