Question: If following code was executed, what is the final value of variable y? y=2; for k=0: 3 y = y +2*k; end

If following code was executed, what is the final value of variable y? y=2; for k=0: 3 y = y +2*k; end
Step by Step Solution
3.49 Rating (142 Votes )
There are 3 Steps involved in it
In the given code snippet the initial value of variable y is set to 2 The code then enters a fo... View full answer
Get step-by-step solutions from verified subject matter experts
