by @Wichart Manachaimongkol Fork
{"functions":[],"name":"LoopExercise2","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_c9cab0b2_1f2f_424d_a469_dc9c7e9928fb"},{"@type":"Declare","tpe":"Integer","name":"x","id":"id_3184c8b6_2bee_4cd3_9e44_4e9472273c1a","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"y","id":"id_3718e234_4db1_4cfc_b309_93d21e1c8309","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"Sum","id":"id_8feab468_c713_494d_a576_434172a0abf0","initValue":"0"},{"@type":"Input","name":"x","id":"id_8ced26c6_ffa8_4299_b3be_15e87c56e560","prompt":"Please enter start number : "},{"@type":"Input","name":"y","id":"id_7a9e1ac8_a077_49f8_aeb6_747fd0452edc","prompt":"Please enter amount of number : "},{"varName":"i","incr":"1","@type":"ForLoop","start":"x","end":"y","id":"id_e3164a77_f6ba_4f0c_bfea_1ae0118db05d","body":{"statements":[{"@type":"Assign","name":"Sum","id":"id_9ed64acd_f7c5_4b0c_9163_cbffa5dcea86","value":"Sum + i"}],"id":"id_ae6c9caf_d849_4eb7_b10c_729dc045012e"}},{"newline":true,"@type":"Output","id":"id_b288636e_b29e_4a79_8132_810394fc471c","value":"\"Totol sum of positive number from \" + x +\" to \" + y + \" is \" + Sum + \".\""},{"@type":"Return","id":"id_737ec653_00e6_4dbb_a2d0_c0c3d8d51087","maybeValue":null}],"parameters":[]},"id":"id_98ad7b50_c066_4117_baff_3e3bbe408e06","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"python","showGenCode":true},"version":"0.2","revision":246}