Junior — Senior
Counting the number of for loop passes
livecode
Task condition
It is necessary to determine how many times the following loop will be executed.
for (int k = 12; k > 3; k -= 2) {}
livecode
Task condition
It is necessary to determine how many times the following loop will be executed.
for (int k = 12; k > 3; k -= 2) {}