Answer:
k - 1 times
Step-by-step explanation:
Given
The attached code snipped
Required
Maximum number of times, the print statement is executed
From the iteration, we have: i = 2; i<=k; i++
This means that; i = 2 to k
Say:
(4 values) i.e. 5 - 1
Say
(9 values) i.e. 10 - 1
So, the maximum number of times is k - 1