by @meradiayoub Fork
{"functions":[],"name":"Sum of Odd Numbers From 1 to N","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_2df4132d_6349_4b90_a8b2_55ebc84d395b"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"N","lengthValue2":"5","id":"id_43940a9c_87a8_469f_9b9f_6bdbcf3afa8d","initValue":null},{"newline":true,"@type":"Output","id":"id_e0e2852c_0fb3_4c35_a5d3_8bad708364ff","value":"\"input the Value of N : \""},{"@type":"Input","name":"N","id":"id_ea41ffdc_a44b_4518_a36a_4acbcb393f2e","prompt":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"Iterator","lengthValue2":"5","id":"id_2e9f3761_9416_40db_b117_da916ca69b96","initValue":"1"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"sum","lengthValue2":"5","id":"id_59e30beb_a285_4a3e_a591_5cd11adbb7c9","initValue":"0"},{"condition":"Iterator<=N","@type":"DoWhile","id":"id_667ff436_ccfa_4002_9079_d4581c9b4046","body":{"statements":[{"@type":"Assign","name":"sum","id":"id_5f8fae9d_e555_42ef_9009_a039e0af0c34","value":"sum+Iterator"},{"@type":"Assign","name":"Iterator","id":"id_a8ce4d3f_4778_42dd_8114_ebed0e348236","value":"Iterator+2"}],"id":"id_6333f94b_1a1f_4882_b886_519333f0d4cb"}},{"newline":true,"@type":"Output","id":"id_6bc8d741_55ac_4ec8_a5ac_0075d445b850","value":"\"Sum of odd numbers from 1 to \"+N+\" : \"+sum"},{"@type":"Return","id":"id_e156c6a3_6b87_46b7_a2a2_aca3a68d0b79","maybeValue":null}],"parameters":[]},"id":"id_5ef8d551_05d3_4525_abf5_8c437f7984ef","config":{"showDebugVars":false,"useInputPrompt":true,"echoEnteredValue":true,"showIoBtns":false,"showFunctions":false,"lang":"c","showGenCode":true},"version":"0.3","revision":210}