Question: Consider the following for loop: for i = 1 : 2 0 b ( i ) = i + 1 ; g ( i )

Consider the following for loop:
for i =1:20
b(i)= i+1;
g(i)= b(i)-1;
end
Select the true statements:
a.
It runs 21 times, and g(14) is 14.
b.
It runs 20 times, and g(14) is 14.
c.
It runs 19 times, and b(3) is 4.
d.
It runs 20 times, and b(3) is 4.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!