#include<\/a> <iostream><\/p>\nusing namespace std;<\/p>\n
<\/p>\n
int main(){<\/p>\n
int a;<\/p>\n
int a2=0;<\/p>\n
int b;<\/p>\n
int c;<\/p>\n
int d;<\/p>\n
do{<\/p>\n
cout <<“give me a number”;<\/p>\n
cin >> (a);<\/p>\n
cout <<“give me another number”;<\/p>\n
cin >> (b);<\/p>\n
a2 = (a2+1);<\/p>\n
c= (a+b);<\/p>\n
cout << “the sum of the numbers is” <<c<<endl;<\/p>\n
cout <<“would you like to enter other values? 1)yes, 2)no”;<\/p>\n
cin >> (d);<\/p>\n
<\/p>\n
<\/p>\n
}<\/p>\n
while (d ==1);<\/p>\n
cout << “you did the operation “<<a2<< ” times”;<\/p>\n
return 0;<\/p>\n
}<\/p>\n
<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"
#Mastery19 #loops #c++ #programhere is my code!#include <iostream>using namespace std; int main(){int a;int a2=0;int b;int c;int d;do{ cout <<“give me a number”; cin >> (a); cout <&… Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":43,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,26],"tags":[219,95,197,115,220],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/4418"}],"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\/43"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/comments?post=4418"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/4418\/revisions"}],"predecessor-version":[{"id":4421,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/4418\/revisions\/4421"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/media?parent=4418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/categories?post=4418"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/tags?post=4418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}