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<=30; i++){
if (i%5==0)
p+=i;
}
cout<<p<<endl;
b. int count=2;
int g=0;
while (count<=50){
g=count;
cout<<g<<endl;
count +=2;
}
cout<<count<<endl;