Asked by Vaibhav

What is the count for the instruction CountMe as a function of n for the fragment below? (Assume that n can be either even (2k) or odd (2k+1))

Line 1: j = 0
Line 2: while (j < n) {
Line 3: CountMe
Line 4: j = j+2;
}

Answers

There are no human answers yet.
There are no AI answers yet. The ability to request AI answers is coming soon!

Related Questions