Computer Science, asked by digalfranklin7447, 9 months ago

m
1)
Int a=0.b=20;
for (int i=20;i>=4;i=i-3)
{
if(i%21=0
a=a+2;
)
b=b+a:
predict the value of b after execution​

Answers

Answered by snehashrivastava23
1

Answer:

a= 0, b = b + 0

= 20 + 0

= 20

Explanation:

loop start from 20 which smaller than 21 so that's why condition is always false. No change in the value of a....

Similar questions