#include<\/a> <iostream><\/p>\nusing namespace std;<\/p>\n
int main ()<\/p>\n
{<\/p>\n
int menor,mayor,contador;<\/p>\n
int suma=0;<\/p>\n
bool condicion=true;<\/p>\n
cout << “we will calculate the sum of integers in the range you provide”<< endl;<\/p>\n
cout <<“”<< endl;<\/p>\n
cout << “Please give me the lower bound: ” << endl;<\/p>\n
cin >>menor;<\/p>\n
cout <<“please give me the upper bound: “<< endl;<\/p>\n
cin >>mayor;<\/p>\n
contador=menor;<\/p>\n
int mayor2=mayor+1;<\/p>\n
while(condicion)<\/p>\n
{<\/p>\n
if (contador==mayor2)<\/p>\n
{<\/p>\n
condicion=false;<\/p>\n
}<\/p>\n
else<\/p>\n
{<\/p>\n
suma=suma+contador;<\/p>\n
contador++;<\/p>\n
}<\/p>\n
}<\/p>\n
cout<<“the sum from “<< menor<< ” to “<< mayor << ” is ” << suma << endl;<\/p>\n
return 0;<\/p>\n
}<\/p>\n
<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"
#include <iostream>using namespace std;int main (){int menor,mayor,contador;int suma=0;bool condicion=true;cout << “we will calculate the sum of integers in the range you provide”<< endl;cout <<“”<< endl;cout <… Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":88,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,26],"tags":[95],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/5009"}],"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\/88"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/comments?post=5009"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/5009\/revisions"}],"predecessor-version":[{"id":5010,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/5009\/revisions\/5010"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/media?parent=5009"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/categories?post=5009"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/tags?post=5009"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}