\n
This programs ask<\/strong> you for two different integer numbers, then it will sum the integer numbers between this two numbers and both numbers. For example, if you chose 1 and 6, it wills sum 2, 3, 4, 5 and both numbers, 1 and 6, giving a total of 21. To write the code, I had to use the function while.<\/strong> You can also use do-while <\/strong>or for, <\/strong>these three functions works for the program, though each one of them have advantages over the others. I also use this simbols after a variable: ++<\/strong>. Their function is to increase for one the variable every time the loop repeats.<\/p>\nHere is the code:<\/p>\n
<\/p>\n
Here is the code executed<\/p>\n
<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"
This programs ask you for two different integer numbers, then it will sum the integer numbers between this two numbers and both numbers. For example, if you chose 1 and 6, it wills sum 2, 3, 4, 5 and both numbers, 1 and 6, giving a total of 21… Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":56,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,26],"tags":[],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/5771"}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/users\/56"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/comments?post=5771"}],"version-history":[{"count":2,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/5771\/revisions"}],"predecessor-version":[{"id":7466,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/5771\/revisions\/7466"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/media?parent=5771"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/categories?post=5771"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/tags?post=5771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}