In-C-What-is-the-sections-doing-and-What-is-the-output-from-the-sections-below-a-int-p-o-for-int-i-1-i-lt-30-i-if-i-5-0-p-i-cout-lt-lt-p-lt-lt Tinku Tara June 4, 2023 Others 0 Comments FacebookTweetPin Question Number 85222 by Umar last updated on 20/Mar/20 InC++Whatisthesectionsdoing?andWhatistheoutputfromthesectionsbelow?a.intp=o;for(inti=1;i<=30;i++){if(i%5==0)p+=i;}cout<<p<<endl;b.intcount=2;intg=0;while(count<=50){g=count;cout<<g<<endl;count+=2;}cout<<count<<endl; Commented by Umar last updated on 20/Mar/20 pleasehelp Commented by mr W last updated on 20/Mar/20 a.typohere:intp=0;itistocalculatethesumofallintegersfrom1to30whicharedivisibleby5.outputisp=105b.itisjusttodisplaytheevenintegersfrom2to50,i.e.2,4,6,…,50. Commented by Umar last updated on 20/Mar/20 thankyousomuchsir. Terms of Service Privacy Policy Contact: info@tinkutara.com FacebookTweetPin Post navigation Previous Previous post: lim-x-0-log-e-x-1-x-please-help-Next Next post: The-vertices-of-a-square-are-z-1-z-2-z-3-and-z-4-taken-in-the-anticlockwise-order-then-z-3-1-iz-1-1-i-z-2-2-iz-1-1-i-z-2-3-z-1-1-i-z-2-4-1-i-z-1-z-2- Leave a Reply Cancel replyYour email address will not be published. Required fields are marked *Comment * Name * Save my name, email, and website in this browser for the next time I comment.