#Mastery19<\/a> using a do{}while is simple. the function of this is repeating whatever is inside the “do{—-}whiile” WHILE the condition inside the “while” turns false. example: <\/p>\n cin>>num1;<\/p>\n
do<\/p>\n
{<\/p>\n
sum = sum + 1;<\/p>\n
num2 = sum + num2;<\/p>\n
}while(sum<num1);<\/p>\n
is going to repeat whatever is inside the do{}while (LOOP) while the condition presented inside the parenthesis is true<\/p>\n
<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"
#Mastery19 using a do{}while is simple. the function of this is repeating whatever is inside the “do{—-}whiile” WHILE the condition inside the “while” turns false. example: cin>>num1;do{sum = sum +… Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":99,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,26],"tags":[115],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/6282"}],"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\/99"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/comments?post=6282"}],"version-history":[{"count":2,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/6282\/revisions"}],"predecessor-version":[{"id":7594,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/6282\/revisions\/7594"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/media?parent=6282"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/categories?post=6282"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/tags?post=6282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}