state the final value of q after the execution of [3]
the given program. Show the dry run
int m,n,p,q;
for(m=2;m<=3;++m)
{
for(n=1;n<=m;++n)
{
p=m+n-1;
if(p%3==0)
q+=p;
else
q+=p+4;
}
}
Answers
Answered by
0
Answer:
you are written a wrong program
Similar questions
Math,
3 months ago
Physics,
3 months ago
Social Sciences,
3 months ago
Math,
7 months ago
Social Sciences,
7 months ago
Physics,
1 year ago